Commit 10f5e3d2 by BellCodeEditor

auto save

parent 78ff6c52
Showing with 30 additions and 5 deletions
import random
#等待玩家输入
playerpls = raw_input("请输入:剪刀(0) 石头(1) 布(2):")
player = int(playerpls)
#人机瓜皮
ubuntu = random.randint(0,2)
#判断输赢
if (player == 0 and ubuntu == 2) or (player == 1 and ubuntu == 0) or (player == 2 and ubuntu == 1):
print("牛逼,你赢了")
elif ubuntu==player:
print("平了,那你别想走,再来一把")
else:
print("你输了,垃圾,滚吧")
import randow
list2=["石頭"",""剪刀"",""布"]
a1=randow.choice(list2)
print("計算機選擇的事:"+a1)
\ No newline at end of file
a=input("shuru")
a=int(a)
if not (a%2) and not (a%7):
print("yes")
else
print("no")
\ No newline at end of file
a=input("输入")
a=int(a)
if a==10:
print("等于")
elif:
if a < 10:
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