[python]代码库
import ybc_box as box
#
while True:
op = box.buttonbox('请选择你想看的枪支',['1.突击步枪','2.射手步枪','3.狙击枪','4.冲锋枪','...'])
if op =='1.突击步枪':
box.msgbox('AKM','AKM.png')
box.msgbox('AUG','AUG.png')
box.msgbox('G36C','G36C.png')
box.msgbox('Groza','Groza.png')
box.msgbox('M16A4',"M16A4.png")
box.msgbox('M416','M416.png')
box.msgbox('M762','M762.png')
box.msgbox('MK47','MK47.png')
box.msgbox('QBZ','QBZ.png')
box.msgbox('SCARL','SCARL.png')
elif op == '2.射手步枪':
box.msgbox('VSS','VSS.png')
box.msgbox('SKS','SKS.png')
box.msgbox('Mk14','Mk14.png')
box.msgbox('Mini14','Mini14.png')
box.msgbox('SLR','SLR.png')
box.msgbox('QBU','QBU.png')
elif op =='3.狙击枪':
box.msgbox('AWM','AWM.png')
box.msgbox('Kar98k','Kar98k.png')
box.msgbox('M24','M24.png')
box.msgbox('win94','win94.png')
elif op =='4.冲锋枪':
box.msgbox('MicroUZI','MicroUZI.png')
box.msgbox('汤姆逊','汤姆逊.png')
box.msgbox('UMP45','UMP45.png')
box.msgbox('Vector','Vector.png')
box.msgbox('野牛冲锋枪','野牛冲锋枪.png')
elif op == '...':
box.msgbox('太多了,不想做了')
break
[源代码打包下载]
初级程序员
by: Kingbeach 发表于:2021-06-01 00:26:47 顶(2) | 踩(1) 回复
弱弱的问一句,怎么用
网友回复
回复Zhanga : 他这个是在另一个少儿编程特殊软件运行的程序,Pycharm、Python都不能运行
顶(1) 踩(1) 2021-07-28 21:54:58
回复评论