Commit e312e15c by BellCodeEditor

save project

parent a9419701
Showing with 1 additions and 1 deletions
...@@ -3,7 +3,7 @@ plar=input("请出拳(石头/剪刀/布)") ...@@ -3,7 +3,7 @@ plar=input("请出拳(石头/剪刀/布)")
print("我出"+plar) print("我出"+plar)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
if plar in list if plar in list:
computer=random.choice(list) computer=random.choice(list)
print("计算机出:"+computer) print("计算机出:"+computer)
if plar == computer: if plar == computer:
......
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