猫史档案馆


程序侯

程序侯

Lv.1

卧薪藏胆某人

获赞:110收藏:14浏览:1445作品收藏:61

签名:一边期盼吉吉喵给权限一边在不属于我的地图上写代码

回复帖子评论
上一页2 页 / 共 7下一页

撞车之遇见大大 中回复

都是机器!!!!!!!!!!

2020-05-20T19:42:42 点赞:0

【Python作品分享】turtle弹幕【求助帖】 中回复

而且由于是多线程,它一直在报错!

2020-05-25T11:51:19 点赞:0

【Python作品分享】turtle弹幕【求助帖】 中回复

@所有人

大家都没有仔细看源代码,有的看了却连图片上的报错都不看看,能细心点吗?

2020-05-28T09:55:58 点赞:0

BUG!! 中回复

本来就是的。

此乃非bug也~

2020-06-01T08:46:08 点赞:0

之前的没图片,请看这个。有个网站盗编程猫,http://www.qianjugo.com/Main/ 中回复

千桔它们就会骗人。还说我们没素质。

2020-06-01T08:54:53 点赞:0

我建议可以制作这种函数 中回复

那请你先去跟Python,C,C++,java,javascript……它们说说(scratch除外),函数功能就是跟他们学的。

2020-06-01T08:59:15 点赞:0

看一下我的作品吧,网址:...... 中回复

你可以先复制网址,然后选中文字\图片,Ctrl+V就行了。

2020-06-01T18:50:48 点赞:0

【作品分享】经典像素贪吃蛇 中回复

https://shequ.codemao.cn/work/48175547?entry=copy_work_url

2020-06-01T19:11:29 点赞:0

不会吧!!! 中回复

我两小时攒到了99+

2020-06-02T11:16:15 点赞:0

唉!老天不让我升段 中回复

老天进制我变院士emotion_编程猫_伤心emotion_编程猫_耍赖

2020-06-02T16:48:05 点赞:0

为什么打出…… 中回复

微信

2020-06-07T16:58:10 点赞:0

真正的range…… 中回复

2020-06-07T17:32:12 点赞:0

Python【编程小讲堂】第六期 easygui干货 中回复

爱因斯坦的弟子~

假如你一每秒200 000千米额速度直线匀速运动,你的一天等于我的几年?

答不上来,你就不是他的弟子哦~

2020-06-14T16:22:39 点赞:0

Python【编程小讲堂】第六期 easygui干货 中回复

问一下,interbox非要设置最小值和最大值吗?emotion_编程猫_耍赖emotion_编程猫_伤心

2020-06-14T16:42:58 点赞:0

Python【编程小讲堂】第六期 easygui干货 中回复

integerbox怎么没任何效果!完全就是:

def integerbox(……):
    while True:
        pass

2020-06-14T20:13:19 点赞:0

【Python作品分享】你的电脑已卡机【作品秀】 中回复

while True:
    #............

就行了

2020-06-19T20:19:26 点赞:0

【kitten】无聊的我 中回复

图像印章它不香吗

2020-06-19T22:51:44 点赞:0

找师傅找师傅 中回复

我觉得萌新我带可以!

2020-06-21T20:11:44 点赞:0

【KittenV4.1.1版本更新】超有料!克隆可以按编号识别? 中回复

如果实在别的时候,我不允许技术喵掉一普朗克长度头发;但现在,我需要技术喵掉96 000 000 000光年头发,吧广播改回来!emotion_星能猫_哼

2020-06-24T09:09:06 点赞:2

【KittenV4.1.1版本更新】超有料!克隆可以按编号识别? 中回复

源码图鉴还没改过来哦

2020-06-24T11:02:47 点赞:0

【KittenV4.1.1版本更新】超有料!克隆可以按编号识别? 中回复

为了“跟随潮流”,我努力吧所有告诉积木都换成了广播……

2020-06-24T13:19:33 点赞:1

【KittenV4.1.1版本更新】超有料!克隆可以按编号识别? 中回复

正序云排行榜,请立刻更新!

2020-06-24T13:25:12 点赞:3

pygame经典贪吃蛇 中回复

赠送一个链接:

https://www.jianshu.com/p/5cc2a005961b

2020-07-04T23:43:19 点赞:0

@编程猫官方!重大事件!有bug! 中回复

我也遇到过。先把原积木换回来,上面的不用管,会自动删的

2020-07-05T10:13:07 点赞:0

pygame经典贪吃蛇 中回复

2.0版本新出炉了!

import pygame, sys, time, random
from pygame.key import *

pygame.init()
sceen = pygame.display.set_mode((500, 500))
sce喵5, 255))
pygame.draw.rect(sceen, (0, 0, 0), (0, 0, 500, 500), 100)
pygame.display.flip()
pygame.display.set_caption('经典贪吃蛇游戏即将开始')

class draw:#用来画画的类 #20×20像素为一个格子
    def hand(x, y, direction):#画头
        pygame.draw.rect(sceen, (85, 85, 85), (x * 20 + 51, y * 20 + 51, 18, 18), 0)#画头
        if direction == 'up':#画眼
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 55, y * 20 + 55, 3, 3))
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 62, y * 20 + 55, 3, 3))
        elif direction == 'down':
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 55, y * 20 + 62, 3, 3))
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 62, y * 20 + 62, 3, 3))
        elif direction == 'left':
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 55, y * 20 + 55, 3, 3))
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 55, y * 20 + 62, 3, 3))
        elif direction == 'right':
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 62, y * 20 + 55, 3, 3))
            pygame.draw.rect(sceen, (255, 255, 255), (x * 20 + 62, y * 20 + 62, 3, 3))
    def body(x, y):#画蛇身
        pygame.draw.rect(sceen, (170, 170, 170), (x * 20 + 51, y * 20 + 51, 18, 18), 0)
    def food(x, y):#画食物
        pygame.draw.circle(sceen, (170, 170, 170), (x * 20 + 60, y * 20 + 60), 8, 0)
def mobile(direction):#移动整条蛇
    global snaks, revious#revious变量:用来存储那段“消失”的坐标,可以说是备份,或者电脑系统里的“回收站”
    if direction == 'up':
        snaks.insert(0, (snaks[0][0], snaks[0][1] - 1))
        revious = snaks.pop()
    elif direction == 'down':
        snaks.insert(0, (snaks[0][0], snaks[0][1] + 1))
        revious = snaks.pop()
    elif direction == 'left':
        snaks.insert(0, (snaks[0][0] - 1, snaks[0][1]))
        revious = snaks.pop()
    elif direction == 'right':
        snaks.insert(0, (snaks[0][0] + 1, snaks[0][1]))
        revious = snaks.pop()
snaks = [(10, 9)]#蛇的坐标们 #第一项是头,然后是身子们
food = (10, 9)#食物的坐标
while food in snaks:#避免食物和蛇重合
    food = (random.randint(0, 19), random.randint(0, 19))
direction = 'left'#方向,用来画头和移动
score = 0#得分

time.sleep(1)
pygame.display.set_caption('3')
time.sleep(1)
pygame.display.set_caption('2')
time.sleep(1)
pygame.display.set_caption('1')
time.sleep(1)
pygame.display.set_caption('Go!')
time.sleep(1)
while True:
    for event in pygame.event.get():
        if event == pygame.QUIT:
            sys.exit()
    sce喵5, 255))
    pygame.draw.rect(sceen, (0, 0, 0), (0, 0, 500, 500), 100)
    mobile(direction)
    if food == snaks[0]:
        score += 1
        snaks.append(revious)
        while food in snaks:
            food = (random.randint(0, 19), random.randint(0, 19))
    draw.food(food[0], food[1])
    draw.hand(snaks[0][0], snaks[0][1], direction)
    for body in snaks[1:]:
        draw.body(body[0], body[1])
    pygame.display.flip()
    if snaks[0] in snaks[1:]:
        pygame.display.set_caption('你撞到了自己,失败了。')
        time.sleep(1)
        pygame.display.set_caption('本次游戏你得到了' + str(score) + '分。')
        time.sleep(1)
        sys.exit()
    if snaks[0][0] < 0 or snaks[0][0] > 19 or snaks[0][1] < 0 or snaks[0][1] > 19:
        pygame.display.set_caption('你撞到了墙,失败了。')
        time.sleep(1)
        pygame.display.set_caption('本次游戏你得到了' + str(score) + '分。')
        time.sleep(1)
        sys.exit()
    if get_pressed()[pygame.K_UP]:
        direction = 'up'
    if get_pressed()[pygame.K_DOWN]:
        direction = 'down'
    if get_pressed()[pygame.K_LEFT]:
        direction = 'left'
    if get_pressed()[pygame.K_RIGHT]:
        direction = 'right'
    pygame.display.set_caption('得分:' + str(score))
    time.sleep(0.2)

2020-07-05T10:26:59 点赞:0

找一个制作联机游戏的师傅 中回复

你要做什么联机,也许我行

2020-07-05T12:47:10 点赞:0

坚持一百秒 中回复

!!!代码离也出现了屏蔽词!!!!!emotion_编程猫_紧张

2020-07-05T14:03:45 点赞:0

为什么事件模块中的当开始被点击不见了!!!!!! 中回复

这是因为kitten4.1.1后面屏没有

2020-07-05T14:20:22 点赞:0

az,这是什么 中回复

人家自动登陆了我?我的scratch账号是if_like_scratch,人家显示着程序猴

2020-07-05T14:22:08 点赞:0

【投票帖】你的账号是什么类型 中回复

DA,微信

DB,QQ

DA,DB,A

2020-07-05T14:23:56 点赞:0