- 博客(6)
- 收藏
- 关注
原创 用python做个捕蛋器小游戏
from itertools import cyclefrom random import randrangefrom tkinter import Canvas, Tk, messagebox, fontcanvas_width = 800canvas_height = 400root = Tk()root.title('《Python》')c = Canvas(root, width=canvas_width, height=canvas_height, background='de.
2021-07-20 13:16:37
511
原创 用Python做个捕蛋器
from itertools import cyclefrom random import randrangefrom tkinter import Canvas, Tk, messagebox, fontcanvas_width = 800canvas_height = 400root = Tk()root.title('《Python》')c = Canvas(root, width=canvas_width, height=canvas_height, background='de.
2021-07-20 13:13:27
397
原创 2021-06-12
用Python做猜数字游戏游戏源码:import randombot=int(input(‘Set range bottom\n’))top=int(input(‘Set range top\n’))rand=random.randint(bot,top)print (‘Random number in [’+str(bot)+’,’+str(top)+’] generated!’)num=int(input(’###Guess the number###\n’))cnt=1while (
2021-06-12 10:03:42
177
2
原创 2021-06-12
标题猜数字游戏代码猜数字游戏代码:import randombot=int(input(‘Set range bottom\n’))##top=int(input(‘Set range top\n’))rand=random.randint(bot,top)print (‘Random number in [’+str(bot)+’,’+str(top)+’] generated!’)num=int(input(’###Guess the number###\n’))cnt=1while
2021-06-12 09:59:03
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅