Commit f5f4e83b by BellCodeEditor

save project

parent 684c4d56
Showing with 11 additions and 4 deletions
...@@ -2,12 +2,19 @@ ...@@ -2,12 +2,19 @@
ooooo=input("玩家出/核弹/钞能力/老马") ooooo=input("玩家出/核弹/钞能力/老马")
print("玩家出"+ooooo) print("玩家出"+ooooo)
import random import random
ad["核弹”“钞能力”“老马"] ad["核弹"/"钞能力"/"老马"]
computer=choice.random(ad) computer=choice.random(ad)
print(random) print(random)
if ad==computer:
print("平局")
else ooooo=="核弹" and computer=="钞能力":
print("你输了")
else ooooo=="核弹" and computer=="老马":
print("你输了")
else ooooo=="老马" and computer=="钞能力":
print("你赢了")
else ooooo=="钞能力" and computer=="核弹":
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