Commit 38e5a3ce by BellCodeEditor

save project

parent b3f7f742
bro1="关羽"
bro2="刘备"
bro3="张飞"
bros=["关羽","刘备","张飞"]
bro1=["关羽",160,8,5]
bro2=["刘备",161,9,1]
bro3=["张飞",166,8,3]
bro
\ No newline at end of file
a=['华雄']
c=['文丑','颜良']
a.extend(c)
print(a)
\ No newline at end of file
......@@ -3,4 +3,14 @@ print("玩家出拳:"+player)
import random
xz = ["石头","剪刀","布"]
computer = random.choice(xz)
print(computer)
print("计算机出拳:"+computer)
if player in xz:
if player == computer:
print("平局")
elif (computer=="布" and player=="剪刀")or(computer=="剪刀" and player=="石头")or(player=="布" and computer=="石头"):
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
print("游戏结束,请重按运行键再次游玩,谢谢。")
\ No newline at end of file
list=["1","1","2","2"]
list.remove("1")
print(list)
lista=["1","1","2","2"]
lista.pop(0)
print(lista)
\ 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