猫史档案馆


【Python作品分享】haha

用户:陈大大大大不能在大了陈大大大大不能在大了查看:0 回复:0 评论:0 创建时间:2020-12-18T13:22:38


【作品展示】

center_image

 

【作品介绍】

good

 

【作品源代码】

import easygui
import time
import turtle
import random

__Pen = turtle.Pen()


#开始进入Python的世界
print('Hello', input('你的名字?'))
easygui.msgbox('Hello')
time.sleep(2)
if easygui.ynbox('是否继续?'):
    __Pen.pencolor("#000099")
    __Pen.circle(random.uniform(25.5, 74.5))
    __Pen.fillcolor("#ff9900")
else:
    print(input('你的名字?'))
    print('你是sb')
__Pen.right(90)
__Pen.forward(50)
__Pen.pencolor("#009900")
__Pen.write('大使馆')
time.sleep(2)
print(turtle.numinput('对话框', '请输入数字'))
time.sleep(1)
print('ha,ha')

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页