猫史档案馆


KIHIO

KIHIO

Lv.1

回到社区

获赞:148收藏:32浏览:5581作品收藏:75

签名:

回复帖子评论
上一页3 页 / 共 6下一页

有谁比我还穷? 中回复

甚至除了编程猫连一个二阶精灵也没有

2021-08-01T15:44:22 点赞:0

【APP工匠V1.1.0版本更新】作品可以发布到社区啦! 中回复

即使有APP工匠,我也坚持用KITTEN

2021-08-01T19:49:50 点赞:0

快来考古呀 中回复

应该只是你P的图 或者是社区BUG 毕竟编程猫始于2015

2021-08-01T20:52:17 点赞:1

【留给1年后挖坟】 中回复

贴主许可,正在考古中…… 洛阳铲,挖!去年的帖子!

2021-08-01T21:10:43 点赞:0

H喵L5教程-002 中回复

H喵L

2021-08-01T21:35:37 点赞:0

【Python作品分享】爬取网页源代码【H喵L】【作业帖】 中回复

我居然用这个爬取KITTEN的代码……

2021-08-01T21:44:35 点赞:0

【社区功能反馈】用心倾听,用头发发电!(2026更新版) 中回复

为啥有时候无响应就取消登录了

2021-08-02T17:35:22 点赞:0

惊喜之事!!! 中回复

其实我还在前期

2021-08-02T18:30:40 点赞:0

太香了啊,一天瞬间的5万多晶石,15个源码蛋👍 中回复

我还在前期,结果两天陆陆续续两个精灵等级都升到了可以进化成二阶的地步,我正在忙碌着准备积木为它们进化(其中一个已经进化了)

2021-08-02T21:20:22 点赞:0

【源码精灵】源码精灵奇异事件 中回复

…… ……

2021-08-02T21:21:12 点赞:0

闲话之王-雨师 中回复

代码是闲话的工厂(滑稽)

2021-08-02T21:27:02 点赞:0

星能猫四阶 中回复

FFFFFFFFFFFFFF

2021-08-02T21:28:04 点赞:0

急!!源码精灵打开忘记关了,时间到了45分钟怎么办啊o(╥﹏╥)o 中回复

今天7:00就可以玩了,只要24分钟

2021-08-03T06:30:57 点赞:0

【源码精灵】我缺变量积木!!! 中回复

好了好了我不缺了

2021-08-03T06:31:57 点赞:0

【手机编程】口袋里的编程神器,随时随地创造世界! 中回复

这是古人,我考古一下

2021-08-03T09:25:32 点赞:1

【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复

我不想反馈K4BUG,想反馈海龟BUG。为了你看到,发进这个帖子。

 

那就是,为啥在判断语句里有括号的东西转积木会说有非法字符???

 

我有一个2048的程序,因为这个BUG无法转化为积木了。

 

求修复233

2021-08-03T12:31:34 点赞:0

【Python作品分享】答题模拟器【作品秀】 中回复

https://shequ.codemao.cn/community/389756

我还能用PYTHON实现2048!!!

2021-08-03T12:56:25 点赞:1

【Python作品分享】minecraft1.6.7【作品秀】 中回复

其实你的程序有严重BUG,来看看我无BUG的2048(先上代码后效果):

import random

h=[]
i=0
while i<16:
    h.append(0)
    i+=1
l=random.randint(0,15)
l2=random.randint(0,15)
while l2==l:
    l2=random.randint(0,15)
h[l]=2
h[l2]=2
win=0
while True:
    i=0
    pzf=' '
    while i<16:
        if (i+1)%4==1:
            pzf=str(h[i])
        else:
            pzf=pzf+str(h[i])
        if (i+1)%4==0:
            print(pzf)
        else:
            j=0
            while j<5-(len(str(h[i]))):
                pzf=pzf+' '
                j+=1
        i+=1
    i=0
    while i<16:
        if h[i]==2048:
            print("你组合出了2048!!!你赢了!!!")
            win=1
            break
        i+=1
    if win==1:
        break
    i=0
    xh=1
    while i<16:
        if h[i]==0:
            xh=0
            break
        i+=1
    if xh==1:
        js=0
        i=0
        while i<16:
            if i%4!=3:
                if h[i]==h[i+1]:
                    js+=1
            i+=1
        i=0
        while i<4:
            j=0
            while j<=8:
                if h[i+j]==h[i+j+4]:
                    js+=1
                j+=4
            i=i+1
        if js==0:
            print("没法拼接了,你输了……")
            break
    try:
        x=float(input("你要做什么决策?(1上2下3左4右):"))
    except ValueError:
        print("ERROR:你的输入为字符串")
        break
    if x-(float(int(x)))>0:
        print("ERROR:你的输入为小数")
        break
    x=int(x)
    if x==1:
        i=4
        while i<16:
            f=i
            if h[i]!=0:
                while f>=0:
                    if h[f]!=0 and f!=i:
                        if h[f]==h[i]:
                            h[f]+=h[i]
                            h[i]=0
                        else:
                            if f!=i-4:
                                h[f+4]=h[i]
                                h[i]=0
                        break
                    f-=4
                if h[f+4]==0 and f<0:
                    h[f+4]=h[i]
                    h[i]=0
            i+=1
        i=0
        g=0
        while i<16:
            if h[i]==0:
                g=1
                break
            i+=1
        if g==1:
            l=random.randint(0,15)
            while h[l]!=0:
                l=random.randint(0,15)
            js=random.randint(1,2)
            h[l]=js*2
    elif x==2:
        i=11
        while i>=0:
            f=i
            if h[i]!=0:
                while f<=15:
                    if h[f]!=0 and f!=i:
                        if h[f]==h[i]:
                            h[f]+=h[i]
                            h[i]=0
                        else:
                            if f!=i+4:
                                h[f-4]=h[i]
                                h[i]=0
                        break
                    f+=4
                if h[f-4]==0 and f>15:
                    h[f-4]=h[i]
                    h[i]=0
            i-=1
        i=0
        g=0
        while i<16:
            if h[i]==0:
                g=1
                break
            i+=1
        if g==1:
            l=random.randint(0,15)
            while h[l]!=0:
                l=random.randint(0,15)
            js=random.randint(1,2)
            h[l]=js*2
    elif x==4:
        i=15
        while i>=0:
            if i%4!=3:
                f=i
                if h[i]!=0:
                    while f<=((int(i/4))*4+3):
                        if h[f]!=0 and f!=i:
                            if h[f]==h[i]:
                                h[f]+=h[i]
                                h[i]=0
                            else:
                                if f!=i+1:
                                    h[f-1]=h[i]
                                    h[i]=0
                            break
                        f+=1
                    if h[f-1]==0 and f>((int(i/4))*4+3):
                        h[f-1]=h[i]
                        h[i]=0
            i-=1
        i=0
        g=0
        while i<16:
            if h[i]==0:
                g=1
                break
            i-=1
        if g==1:
            l=random.randint(0,15)
            while h[l]!=0:
                l=random.randint(0,15)
            js=random.randint(1,2)
            h[l]=js*2
    elif x==3:
        i=1
        while i<16:
            if i%4!=0:
                f=i
                if h[i]!=0:
                    while f>=((int(i/4))*4):
                        if h[f]!=0 and f!=i:
                            if h[f]==h[i]:
                                h[f]+=h[i]
                                h[i]=0
                            else:
                                if f!=i-1:
                                    h[f+1]=h[i]
                                    h[i]=0
                            break
                        f-=1
                    if h[f+1]==0 and f<((int(i/4))*4):
                        h[f+1]=h[i]
                        h[i]=0
            i+=1
        i=0
        g=0
        while i<16:
            if h[i]==0:
                g=1
                break
            i+=1
        if g==1:
            l=random.randint(0,15)
            while h[l]!=0:
                l=random.randint(0,15)
            js=random.randint(1,2)
            h[l]=js*2
    else:
        print("ERROR:你输入的整数不合理")
        break

center_image

2021-08-03T13:05:51 点赞:0

【娱乐】编写编程猫社区“社歌” 中回复

emotion_doge

2021-08-03T15:22:22 点赞:0

你们希望探险的第7章去哪探险 中回复

我才到第二章555(虽然好几个二阶精灵)

2021-08-04T18:17:03 点赞:0

我的自制搞笑段子(冷) 中回复

七十三年后,投胎成了动物,又轻松了(狗头)

2021-08-06T17:07:11 点赞:0

【源码编辑器Kitten】意见反馈信箱(长期有效) 中回复

现在KITTEN已经更新到 4.0 了

2021-08-06T17:50:08 点赞:0

【Kitten版本更新】源码编辑器3.0:这次,我们可以调用Python代码了! 中回复

kitten4.8~4.9正在考古

2021-08-07T16:52:04 点赞:1

【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复

center_image

2021-08-07T18:12:54 点赞:0

【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复

下面是我搞的图片,我执行代码(其中一串,但其实两串都包含)的时候发现能打印HI,强烈建议修复BUG

2021-08-07T18:14:19 点赞:0

【社区功能反馈】用心倾听,用头发发电!(2026更新版) 中回复

源码精灵:

探险结束后,拿奖励时不会切换界面,只会给经验,只有退出后再重来或者再点击一次才行。(百分百出现)

2021-08-07T21:38:26 点赞:0

【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复

我随便弄了个水作品,然后发布,发现作品管理上没有

2021-08-07T21:48:16 点赞:0

【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复

不知道是不是百分百出现,你去试试吧

2021-08-07T21:48:42 点赞:0

【小游戏】闭着眼在键盘上打字,你能打出什么? 中回复

二付金额为妇女违法和很不方便好好计划三十多年三季度报东经北纬火热蜂王浆咖啡文化发布和微博和成本部分未缴费金额为

2021-08-08T18:01:09 点赞:0

【小游戏】闭着眼在键盘上打字,你能打出什么? 中回复

我盲打:

吉尼斯世界纪录

2021-08-08T18:01:46 点赞:0