Commit 6e945bdc by BellCodeEditor

auto save

parent 7c76c743
Showing with 8 additions and 2 deletions
n=1
for i in range(10):
n=n+1
n=n*2
print(n)
\ No newline at end of file
...@@ -3,9 +3,9 @@ l=["剪刀","石头","布"] ...@@ -3,9 +3,9 @@ l=["剪刀","石头","布"]
a=random.choice(l) a=random.choice(l)
print(l) print(l)
s=input("输入你出的:") s=input("输入你出的:")
print(s)
print(a)
if s in l: if s in l:
print(s)
print(a)
if (a=="剪刀" and s=="石头") or (a=="石头" and s=="布") or (a=="布" and s=="剪刀"): if (a=="剪刀" and s=="石头") or (a=="石头" and s=="布") or (a=="布" and s=="剪刀"):
print("你赢了") print("你赢了")
elif a==s: elif a==s:
......
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