Mr.Pang
Mr.Pang - 学生

性别: 广东 - 佛山 注册于 2022-01-24

I'm a student.I like programming.That's my faviteous. Although I'm not good at programming, I want to improve it in here.

向TA求助
40金币数
300 经验值
0个粉丝
主页被访问 302 次

最近动态

2022-08-22 18:23 发起提问

2022-07-07 07:32 回答问题

其实异常处理也不是必须有try的,看看我这个: import random t=0 print("请输入数字生成范围") print("起始数") f=int(input()) print("终止数") s=int(input()) while f==s:     print("起始数和终止数不能相同,请重新输入")     s=int(input()) a=random.randint(f,s) print("这个数在",f,"-",s,"之间,猜猜是什么") g=f h=s

2022-01-30 21:36 发起提问

2022-01-30 21:32 发起提问

2022-01-30 20:41 发表了文章

2022-01-30 20:37 发表了文章

2022-01-25 14:16 回答问题

方法1:用pip安装pyinstaller库,然后在命令行输入pyinstaller -F -w 名字.py(无input)或pyinstaller -F 名字.py(有input) 然后等待,接着会出现一个exe程序,然后点击执行即可(这其实就是打包程序) 方法2:直接用python解释器打开

2022-01-24 15:17 发表了文章

2022-01-24 09:52 发起提问