Commit 569fb1a0 by BellCodeEditor

save project

parent 11da3a39
Showing with 9 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)
if player==computer: if player in list
print("平局") if player==computer:
print("平局")
elif(player==1)
\ 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