Commit 1718d72a by BellCodeEditor

auto save

parent 5c00d472
Showing with 13 additions and 17 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.bgcolor(bule)
pen.penup()
pen.goto(100,-100)
pen.write("VDCVDHUsud\n dsbfsjdl\n ejfwbgwefbkuw\n",font=("Times",40,"normal"))
pen1=turtle.Pen()
pen1.circle(100)
turtle.done()
player=input("玩家出拳:石头\剪刀\布")
print("玩家出"+player)
import random
list=["石头","剪刀","布"]
nao=random.choice(list)
print("计算机出"+nao)
if player==nao:
print("平局")
elif (player=="石头" and nao=="剪刀") or (player=="剪刀" and nao=="布") or (player=="布" and nao=="石头"):
print("恭喜,你赢了")
else:
print("很遗憾,你输了")
\ No newline at end of file
# 勇于挑战的创造师,请运行以下代码,看看能不能删掉水果列表中的香蕉,运行结果是什么呢?
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
list.pop(2)
print(list)
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