Commit 69d3887e by BellCodeEditor

save project

parent 82c53197
Showing with 7 additions and 3 deletions
num=("玩家出拳:石头/剪刀/布)
input("玩家出的是"+num)
\ No newline at end of file
import random
num=input("玩家出拳,石头/剪刀/布:")
computer_list=["石头","剪刀","布"]
computer=random.choice(computer_list)
print("玩家出的是:"+num)
print("电脑出的是:"+computer)
\ 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