Commit 106c4232 by BellCodeEditor

save project

parent c780969f
Showing with 10 additions and 4 deletions
t=input('出(石\\)') t=input('出(石\\)')
print('出'+t) print('出'+t)
import random import random
ct=['石','刀','布'] ct=['石','刀','布']
p=random.choice(ct) c=random.choice(ct)
print(p) print(c)
\ No newline at end of file if t==c:
print('平')
elif(t=='石' and c=='刀') or (t=='刀' and c=='布') or (t=='布' and c=='石'):
print('赢了')
else:
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