Commit 84474ef8 by BellCodeEditor

save project

parent bc162ca4
Showing with 13 additions and 4 deletions
......@@ -2,6 +2,15 @@ kk=input("剪刀石头布")
print("玩家出"+kk)
import random
listl=['剪刀''石头''布']
k=ranort random
dom.choice(listl)
print("计算机"+k)
\ No newline at end of file
k=random.choice(listl)
print("计算机出"+k)
if kk==k:
print("平局")
elif kk=="石头"and k=="剪刀"
print("你赢了")
elif kk=="布"and k=="石头"
print("你赢了")
elif kk=="剪刀"and k=="布"
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