Commit 4f77bd83 by BellCodeEditor

save project

parent 1620fbc7
Showing with 45 additions and 17 deletions
print("hello world")
\ No newline at end of file
import turtle as t
t.bgcolor("pink")
t.pencolor("red")
t.pensize(8)
t.penup()
t.goto(0,-180)
t.pendown()
lovesize = int(t.textinput("提示","请输入爱心的大小0-150"))
t.setheading(45)
t.forward(2*lovesize)
t.circle(lovesize,180)
t.right(90)
t.circle(lovesize,180)
t.forward(2*lovesize)
t.hideturtle()
t.done()
\ No newline at end of file
s1 = [10,20,30,40,50]
print(s1)
s2 = (10 ,30,20,10,30,40,30,50)
print(s2)
s3 = set('abcdefg')
print(s3)
s4 = set()
print(type(s4))
s5 ={}
print(type(s5))
s1 = [10,20]
s1.add(100)
s1.add(10)
print(s1)
s1 = [10,20]
s1.update([100,200])
s1update('abc')
print(s1)
s1.update(100)
#s1.remove(10)
s1.discard(10)
s1 = [10,20,30,40,50,]
del_num = s1.pop()
print(del_num)
print(s1)
s1 = [10,20,30,40,50]
print(10 in s1)
print(10 not in s1m)
t1 = (10,20,30)
t2 = (10,.)
t2 = (10,)
print(type(t2))
t3 = (20)
print(type(t3))
t4 = ('hello')
print(type(t4))
tuple2=(10,20,['aa','bb','cc'],50,30)
print(tuple2[2])
(10,20,['aaaaa','bb','cc'],50,30)
tuple1=('aa','bb','cc','bb')
print(tuple[0])
tuple2=('aa','bb','cc','bb')
print(tuple2.count('bb'))
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