Python点球游戏

时间:2021-11-24 04:21:01
【文件属性】:
文件名称:Python点球游戏
文件大小:2KB
文件格式:PY
更新时间:2021-11-24 04:21:01
Python Python做的点球游戏 def pq(): b = random.randint(1, 3) # 输出扑球方向 if b == 1: print('扑球方向左') elif b == 2: print('扑球方向中') else: print('扑球方向右') return b def sm2(): b = random.randint(1, 3) # 输出电脑射门方向 if b == 1: print('射门方向左') elif b == 2: print('射门方向中') else: print('射门方向右') return b

网友评论