Commit 80007839 by BellCodeEditor

auto save

parent 83628755
Showing with 6 additions and 3 deletions
j=input("石头、剪刀、布") j=input("石头、剪刀、布")
print(j) print(j)
import random
list["石头,剪刀,布"] list["石头,剪刀,布"]
k=random.choice(list) k=random.choice(list)
print(k) print("sb"+k)
list["石头","剪刀","布"] if j==k:
print("平局")
elif (j=="布" and k=="石头") or (j=="剪刀" and k=="布") o:
......
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