用户:
阿尔法官方查看:56 回复:44 评论:56 创建时间:2020-01-07T10:52:22
《编程猫传》
~点击图片阅读全文~
Q:写作喵
A:小企鹅飞
Q:例行提问~你的昵称为啥是小企鹅飞呢?有什么寓意吗?
A:因为我的头像是一只企鹅,所以中间两个字就是企鹅,这个“飞”在我以前的名字里面用过,所以这么一组合,就成了。
Q:是什么契机开启了小说创作之路呢?是否可以简单和大家聊聊自己的写作之路呢?
A:嗯……当时,无意间发现了这个写作界面,就开始随手写一些东西上去,然后一看,哇!好精彩啊,必须继续写下去才行,然后就这样开始写了。
Q:作为图书馆里的资深作者,有什么话想对图书馆新手作者说的吗?
A:加油,多动笔写,我刚开始的时候也写的不算好,但是后来越写越好。
Q:小企鹅飞创作了图书馆第一本积木小说《编程猫传》,可以和大家聊聊这本小说灵感来源吗?另外方便和大家聊聊如何寻找灵感过程吗?
A:灵感来源就是那次万圣节的看图写故事活动,我写了个积木故事《飞行奇遇》,后来就开始写《编程猫传》了 。灵感来源于生活,书中的有些事情就是根据现实中的事情改编的。
Q:灵感来源与生活,能举一个例子吗?
A:那例子还真不少,就比如说,《编程猫传》中阿短在学校的经历,就是根据生活中的经历改编的,再比如说,运动会那一段,灵感也是来源于学校开的运动会。
Q:小企鹅飞的小说《编程猫传》目前成为了社区图书馆人气最高的小说,开始创作时候有想过会这么受到欢迎吗?有想过这本小说受欢迎的原因吗?
A:当时没有想到会这么受欢迎,只是因为灵感来了就开始写。
受欢迎的原因,也许是因为故事比较精彩吧!偷笑罒ω罒
Q:小企鹅飞身边有在编程猫的朋友吗?有想对编程猫里好友说的话吗?
A:有好多朋友,但是不知道说什么话。
Q:如果让你选三个词来形容你自己,你会选哪三个?
A:不知道
Q:其实不光是小说,小企鹅飞也创作了一些优秀的编程作品,比如小说阅读器。你觉得小说创作和编程创作之间有什么相同和不同之处吗?
A:个人感觉,小说创作对于灵感要求比较高,有的时候,我明明剧情想好了,但就是很难写出来。编程创作的话,确定了要做什么,就可以一直做。编程的时候有可能出BUG,每次都得花好多精力找BUG,还得改,一个细节错了,可能就对整个作品的最终效果有影响,有的时候都不知道哪里错了,就很崩溃。
Q:许多作者都有创作瓶颈期,小企鹅飞有过创作瓶颈期吗?又是怎么度过的?
A:有啊,不是那么好度过的,瓶劲期的时候一般更新的很少,一周或者几周才更新一次,像现在就是这样。
Q:小企鹅飞有什么想对你粉丝说的吗?
A:感谢大家的支持,我会继续努力的~
Q:上一个社区星推荐是少院士“麦克斯”,他给你留言:你 是 谁?那么你会怎么回答他的这个问题?
A:我是小企鹅飞,一个萌新,还请各位大佬多多指教。
Q:那你有什么话或者问题想给下一个社区星推荐的小伙伴说的吗?
A:当上了社区星,获得了如此之高的荣誉,心情怎么样?有什么想对各位观众朋友们说的吗?请发表您的获奖感言。
入选【社区星推荐】标准
欢迎加入编程猫源码编辑器官方QQ群【编程猫kitten宇宙中心】
QQ群号:725920291
扫描或点击下方二维码即刻加群
入群获得学习帮助
私聊阿尔法上报自己的社区ID还可以获得100金币
PraB(#>&&)${12345????}https://ide.codemao.cn/#37900278
https://shequ.codemao.cn/work/37900278
#include<bits/stdc++.h>
using namespace std;
int m,n,num,qui=1,quj=1,wer[10001],a;
string x;
int main() {
cin>>m;
for(int i=1; i<=m; i++) {
queue<int>q;
stack<int>s;
cin>>n;
a=0,qui=1,quj=1;
for(int j=1; j<=n; j++) {
cin>>x;
if(x=="push") {
cin>>num;
q.push(num);
s.push(num);
} else if(x=="pop"){
if(q.empty())qui=0;
else {
q.pop();
}
if(s.empty())quj=0;
else {
s.pop();
}
}
}
if(qui==0)cout<<"error";
else {
while(!q.empty()) {
cout<<q.front();
q.pop();
if(!q.empty())cout<<" ";
}
}
cout<<"\n";
if(quj==0)cout<<"error";
else {
while(!s.empty()) {
wer[++a]=s.top();
s.pop();
}
while(a!=0) {
cout<<wer[a];
a-=1;
if(a!=0)cout<<" ";
}
}
cout<<"\n";
}
return 0;
}
点赞0
评论
********# Unit PYG04: Pygame Wall Ball Game version 8 鼠标型
import pygame
import sys
pygame.init()
size = width, height = 600, 400
speed = [1, 1]
BLACK = 0, 0, 0
screen = pygame.display.set_mode(size, pygame.RESIZABLE) # 窗口大小可调
icon = pygame.image.load("PYG03-flower.png")
pygame.display.set_icon(icon)
pygame.display.set_caption("Pygame壁球")
ball = pygame.image.load("PYG02-ball.gif")
ballrect = ball.get_rect()
fps = 300
fclock = pygame.time.Clock()
still = False
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
speed[0] = speed[0] if speed[0] == 0 else (
abs(speed[0]) - 1)*int(speed[0]/abs(speed[0]))
elif event.key == pygame.K_RIGHT:
speed[0] = speed[0] + 1 if speed[0] > 0 else speed[0] - 1
elif event.key == pygame.K_UP:
speed[1] = speed[1] + 1 if speed[1] > 0 else speed[1] - 1
elif event.key == pygame.K_DOWN:
speed[1] = speed[1] if speed[1] == 0 else (
abs(speed[1]) - 1)*int(speed[1]/abs(speed[1]))
elif event.key == pygame.K_ESCAPE:
sys.exit()
elif event.type == pygame.VIDEORESIZE:
size = width, height = event.size[0], event.size[1]
screen = pygame.display.set_mode(size, pygame.RESIZABLE)
elif event.type == pygame.MOUSEBUTTONDOWN:
if event.button == 1:
still = True
elif event.type == pygame.MOUSEBUTTONUP:
still = False
if event.button == 1:
ballrect = ballrect.move(event.pos[0] - ballrect.left, event.pos[1] - ballrect.top)
elif event.type == pygame.MOUSEMOTION:
if event.buttons[0] == 1:
ballrect = ballrect.move(event.pos[0] - ballrect.left, event.pos[1] - ballrect.top)
if pygame.display.get_active() and not still:
ballrect = ballrect.move(speed)
if ballrect.left < 0 or ballrect.right > width:
speed[0] = - speed[0]
if ballrect.right > width and ballrect.right + speed[0] > ballrect.right:
speed[0] = - speed[0]
if ballrect.top < 0 or ballrect.bottom > height:
speed[1] = - speed[1]
if ballrect.right > height and ballrect.bottom + speed[1] > ballrect.right:
speed[1] = - speed[1]
screen.fill(BLACK)
screen.blit(ball, ballrect)
pygame.display.update()
fclock.tick(fps)
请先下载pygame,sys再运行。
点赞0
评论