Commit 6621fe50 by BellCodeEditor

save project

parent 6a3de711
Showing with 7 additions and 0 deletions
...@@ -3,3 +3,9 @@ player=input("请出拳:石头/剪刀/布") ...@@ -3,3 +3,9 @@ player=input("请出拳:石头/剪刀/布")
puint("你赢了") puint("你赢了")
import random import random
randam.import("石头/剪刀/布") randam.import("石头/剪刀/布")
if player==computer
print("平局")
if player"石头"==computer"剪刀" or player"布"==computer"石头" or player"剪刀"==computer"布"
print("玩家赢")
if player"石头"==computer"剪刀" or player"布"==computer"石头" or player"剪刀"==computer"布"
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