Commit 53bf9e24 by BellCodeEditor

save project

parent c112c6d0
Showing with 4 additions and 8 deletions
import random import random
a=input("请输入你要出的:") a=input("请输入你要出的:")
print("玩家:"+a) print("玩家:"+a)
b = random.choice(1,3) list=["石头","布","剪刀"]
if b==1: b = random.choice(list)
print("人机:石头") print("人机:"+b)
if b==2: \ No newline at end of file
print("人机:布")
if b==3:
print("人机:剪刀")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment