用户:MC爱编程查看:0 回复:0 评论:0 创建时间:2020-05-01T19:36:54
【作品展示】

【作品介绍】
这可能有点问题!谢谢你的配合!
【作品源代码】
import time
import easygui
from time import *
xxx = 50
yyy = 10000
#开始进入Python的世界
print('hello')
sleep(1)
easygui.msgbox('Hello')
while yyy != 0 or yyy < 0:
while xxx != 0 or xxx > 0:
print('您有¥'+str(xxx))
x = input('这里有:\n1、面包\t¥10\n2、方便面\t¥5\n3、桃子\t¥11\n4、一个都不要!\n')
if x == '1':
xxx = xxx - 10
elif x == '2':
xxx = xxx - 5
elif x == '3':
xxx = xxx - 11
else:
continue
print('您没有钱了!')
print('这是银行!')
sleep(1)
ccc = input('1、¥5\n2、¥10\n3、¥20\n4、¥50\n')
if ccc == '1':
xxx = xxx + 5
elif ccc == '2':
xxx = xxx + 10
if ccc == '3':
xxx = xxx + 20
if ccc == '4':
xxx = xxx + 50
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn