Commit 84a1eb96 by BellCodeEditor

save project

parent 8c479d29
Showing with 31 additions and 0 deletions
a='''請出拳:
1;石頭
2;剪刀
3;佈
'''
c=input(a)
w=['石頭','剪刀','布']
import random
d=random.choice(w)
print(d)
if c=="石頭":
if d=="石頭":
print('平局')
if d=="剪刀":
print('玩家勝利')
if d=="布":
print('電腦勝利')
if c=="剪刀":
if d=="石頭":
print('電腦勝利')
if d=="剪刀":
print('平局')
if d=="布":
print('玩家勝利')
if c=="佈":
if d=="石頭":
print('玩家勝利')
if d=="剪刀":
print('電腦勝利')
if d=="布":
print('平局')
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