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 s1 = [10,20,30,40,50]
t.bgcolor("pink") print(s1)
t.pencolor("red") s2 = (10 ,30,20,10,30,40,30,50)
t.pensize(8) print(s2)
t.penup() s3 = set('abcdefg')
t.goto(0,-180) print(s3)
t.pendown() s4 = set()
lovesize = int(t.textinput("提示","请输入爱心的大小0-150")) print(type(s4))
t.setheading(45) s5 ={}
t.forward(2*lovesize) print(type(s5))
t.circle(lovesize,180) s1 = [10,20]
t.right(90) s1.add(100)
t.circle(lovesize,180) s1.add(10)
t.forward(2*lovesize) print(s1)
t.hideturtle() s1 = [10,20]
t.done() s1.update([100,200])
\ No newline at end of file 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