用户:鸽子ECYRAZ查看:0 回复:0 评论:0 创建时间:2019-07-29T09:16:27
【作品展示】

【作品介绍】
你输入的间隔,会影响速度
【作品源代码】
import time
a = 0
b = 0
c = 0
d = 2
e = float(input("请输入时间间隔"))
while (d != 1):
print(b, c)
b = (b + 1)
a = (a + 0.1)
time.sleep(e)
if (a >= 10):
c = (c + 1)
a=a-10
if (c == 10):
d=d-1
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn