- 数字反转
1
- 2024-4-29 17:10:47 @
cmdstringname='' huihe='ni' yigongcishu=0 cishu=0 wanjiaxue=0 zhaungjiaxue=0 shi=0 kong=0 import random import time print('BSRv0.3.1内测版(完全随机)') print('作者:huh?') print('三秒后以开始游戏!') time.sleep(1) print('两秒后以开始游戏!') time.sleep(1) print('一秒后以开始游戏!') print('请签属免责书(还不知道是生死状的)...') n=input() for i in range(len(n)): if i=='c': cmdstringname+='管' elif i=='m': cmdstringname+='理' elif i=='d': cmdstringname+='员'
time.sleep(2) print('第一轮') print('''实弹:1 空包:2''') shi=1 yigongcishu=3 kong=2 wanjiaxue=2 zhuangjiaxue=2 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) for i in range(1,3+1): benlun=random.randint(1,yigongcishu) if huihe=='ni' or huihe=='nizhuangjiani': print('打谁?') xuan=int(input('一是庄家,二是'+n)) if xuan1: if benlun1: print('你打中了庄家') zhuangjiaxue-=1 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: print('是空包!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: if benlun1: if wanjiaxue0: print('你TM还在新手保护期期限内!站起来!The night is young!') continue wanjiaxue=2 zhuangjiaxue=2 else: print(n+'紫砂了,'+'草!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) wanjiaxue-=1 print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 else: print('是空包,你捡回一条狗命(bushi)') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 elif huihe=='nizhuangjia': print('到庄家(大哥)了') time.sleep(2) xuanzedg=random.randint(1,2) if xuanzedg1: if benlun1: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)打中了'+cmdstringname+'(你),'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' else: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)木有打中李,你捡回一条命(电量)!'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' if wanjiaxue!=0 or zhuangjiaxue!=0: print('没事,第二轮吧') else: print('第二轮,启动!') print('加载中ing...') time.sleep(5) shi=1 yigongcishu=3 kong=2 wanjiaxue=2 zhuangjiaxue=2 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) for i in range(1,5+1): benlun=random.randint(1,yigongcishu) if huihe=='ni' or huihe=='nizhuangjiani': print('打谁?') xuan=int(input('一是庄家,二是'+n)) if xuan1: if benlun1: print('你打中了庄家') zhuangjiaxue-=1 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: print('是空包!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: if benlun1: if wanjiaxue0: print('你TM还在新手保护期期限内!The night is young!') continue wanjiaxue=2 zhuangjiaxue=2 else: print(cmdstringname+'紫砂了,'+'草!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) wanjiaxue-=1 print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 else: print('是空包,你捡回一条狗命(bushi)') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 elif huihe=='nizhuangjia': print('到庄家(大哥)了') time.sleep(2) xuanzedg=random.randint(1,2) if xuanzedg1: if benlun1: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)打中了'+cmdstringname+'(你),'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' else: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)木有打中李,你捡回一条命(电量)!'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni'
3 条评论
-
王梓宸 @ 2024-7-11 10:54:04
@孙恺泽 (垚垚):你还玩??!!
-
2024-7-10 14:28:45@
cmdstringname='' huihe='ni' yigongcishu=0 cishu=0 wanjiaxue=0 zhaungjiaxue=0 shi=0 kong=0 import random import time print('BSRv0.3.1内测版(完全随机)') print('作者:huh?') print('三秒后以开始游戏!') time.sleep(1) print('两秒后以开始游戏!') time.sleep(1) print('一秒后以开始游戏!') print('请签属免责书(还不知道是生死状的)...') n=input() for i in range(len(n)): if i=='c': cmdstringname+='管' elif i=='m': cmdstringname+='理' elif i=='d': cmdstringname+='员' time.sleep(2) print('第一轮') print('''实弹:1 空包:2''') shi=1 yigongcishu=3 kong=2 wanjiaxue=2 zhuangjiaxue=2 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) for i in range(1,3+1): benlun=random.randint(1,yigongcishu) if huihe=='ni' or huihe=='nizhuangjiani': print('打谁?') xuan=int(input('一是庄家,二是'+n)) if xuan==1: if benlun==1: print('你打中了庄家') zhuangjiaxue-=1 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: print('是空包!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: if benlun==1: if wanjiaxue==0: print('你TM还在新手保护期期限内!站起来!The night is young!') continue wanjiaxue=2 zhuangjiaxue=2 else: print(n+'紫砂了,'+'草!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) wanjiaxue-=1 print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 else: print('是空包,你捡回一条狗命(bushi)') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 elif huihe=='nizhuangjia': print('到庄家(大哥)了') time.sleep(2) xuanzedg=random.randint(1,2) if xuanzedg==1: if benlun==1: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)打中了'+cmdstringname+'(你),'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' else: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)木有打中李,你捡回一条命(电量)!'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' if wanjiaxue!=0 or zhuangjiaxue!=0: print('没事,第二轮吧') else: print('第二轮,启动!') print('加载中ing...') time.sleep(5) shi=1 yigongcishu=3 kong=2 wanjiaxue=2 zhuangjiaxue=2 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) for i in range(1,5+1): benlun=random.randint(1,yigongcishu) if huihe=='ni' or huihe=='nizhuangjiani': print('打谁?') xuan=int(input('一是庄家,二是'+n)) if xuan==1: if benlun==1: print('你打中了庄家') zhuangjiaxue-=1 wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: print('是空包!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 huihe+='zhuangjia' else: if benlun==1: if wanjiaxue==0: print('你TM还在新手保护期期限内!The night is young!') continue wanjiaxue=2 zhuangjiaxue=2 else: print(cmdstringname+'紫砂了,'+'草!') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) wanjiaxue-=1 print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在是'+zjxs) yigongcishu-=1 else: print('是空包,你捡回一条狗命(bushi)') wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) print(cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) yigongcishu-=1 elif huihe=='nizhuangjia': print('到庄家(大哥)了') time.sleep(2) xuanzedg=random.randint(1,2) if xuanzedg==1: if benlun==1: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)打中了'+cmdstringname+'(你),'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni' else: wjxs=str(wanjiaxue) zjxs=str(zhuangjiaxue) yigongcishu-=1 print('庄家(大哥)木有打中李,你捡回一条命(电量)!'+cmdstringname+'血量现在是'+wjxs+','+'庄家(大哥)的血量现在还是'+zjxs) huihe+='ni'
-
2024-4-29 17:15:40@
运行不了
👀 2
- 1
信息
- ID
- 3
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 递交数
- 147
- 已通过
- 88
- 上传者