用户:哈哈大叫的小狗查看:12 回复:6 评论:12 创建时间:2020-07-20T09:48:31
【作品展示】

【作品介绍】
It just a easy AI它只是一个简单的人工智能
【作品源代码】
import turtle
import time
import easygui
__Pen = turtle.Pen()
print('Hello')
name = input("What's your name?")
print((name + ",it's a good name!"))
message = ''
hobby = []
while (message != 'q'):
message = input("What's your hobby?(Enter q to quit)")
if (message == 'q'):
break
else:
hobby.append(message)
print('Your hobby is:')
print(hobby)
print('Do you want a star?')
Draw = ''
Draw = input('Y/N')
if (Draw.lower() == 'y'):
for __count in range(5):
__Pen.forward(100)
__Pen.right(144)
else:
pass
time.sleep(1)
print("Isn't it beautiful?")
easygui.msgbox('I will rest now')
easygui.msgbox('Good bye')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn