Commit 11b2d705 by BellCodeEditor

save project

parent 7f001875
Showing with 4 additions and 0 deletions
......@@ -6,6 +6,7 @@ while True:
lis=['石头','剪刀','布']
com=random.choice(lis)
print("电脑出拳:"+com)
if player in lis:
if com==player:
print('平局')
elif com=='石头' and player=='布':
......@@ -16,3 +17,5 @@ while True:
print('win')
else:
print('lose')
else:
print('mistake')
\ 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