练习
日入上万
这个作者很懒,什么都没留下…
展开
-
python 判断、循环
if、循环 各种小练习 1.猜拳 import random hard = input('拳头/1,剪刀/2, 布/3:') hard = int(hard) computer = random.randint(1, 3) print(computer) if hard == 1 and computer == 2 or hard == 2 and computer == 3 or hard...原创 2018-12-26 21:26:58 · 255 阅读 · 0 评论 -
python 小总结
小结小程序 wel = '员工管理系统' show_wel = wel.center(60, '=') print(show_wel) emps = ['丽丽\t22\t女\t天堂', '小王\t23\t男\t人间'] while True: print('请选择你要的操作:') print('\t1.查询员工') print('\t2.添加员工') prin...原创 2018-12-27 20:24:04 · 334 阅读 · 0 评论