Commit 9b0b5756 by BellCodeEditor

save project

parent 032d0219
Showing with 13 additions and 11 deletions
sa=["关羽","刘备","张飞"]
sa[0]="张飞"
sa[2]="关羽"
print(sa)
sa.remove('刘备')
sa.pop(0)
print(sa)
sa=['张飞']
l=['刘备','关羽']
sa.extend(l)
print(sa)
import turtle
# pen=turtle.Pen()
# pen.write("迟日江山丽,\n春风花草香。\n泥融飞燕子,\n春暖睡鸳鸯",font=("Times",30,"normal"))
# pen.hideturtle()
# turtle.done()
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
turtle.done()
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