Commit d54f8745 by BellCodeEditor

save project

parent 931a50d7
Showing with 7 additions and 6 deletions
import random import random
print(1==石头,2==剪刀,3==) print(石头==1,剪刀==2,==3)
1=石头 1="石头"
2=剪刀 2="剪刀"
3= 3="布"
player=input("请出拳:(1,2,3)") player=input("请出拳:(1,2,3)")
print("玩家出拳:"+player) print("玩家出拳:"+player)
list=[1,2,3] list=[1,2,3]
letter=random.choice(list) letter=random.choice(list)
print(letter) print(letter)
\ No newline at end of file if player==computer:
print("平局")
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