Commit 3d2b36ca by BellCodeEditor

save project

parent 0e3970f5
Showing with 12 additions and 6 deletions
import random
list("石头""剪刀""布")
person-input("请出石头""剪刀""布")
print("玩家出"+person)
computer.choice(list)
print("电脑出"computer)
\ No newline at end of file
list=["石头","剪刀","布"]
player=input("请出石头,剪刀,布")
print("玩家出"+player)
computer=random.choice(list)
print("电脑出"+computer)
if player==computer:
print("平局")
elif player=="石头" and computer=="布":
print("电脑胜")
elif player=="石头" and computer=="剪刀":
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