Commit 0ea3b43b by BellCodeEditor

auto save

parent 1cf9f5c8
Showing with 56 additions and 0 deletions
import turtle
import random
test=input("输入边:")
n=str(test)
bg=turtle.Screen()
bg.bgcolor('green')
xa=turtle.Pen()
n=random.choice(test)
for a in range(100):
#n边形
for i in range(int(n)):
xa.forward(100)
xa.left(360/int(n))
xa.left(30)
import turtle
xa=turtle.Pen()
tanchuang=turtle.textinput("sdfghjkl","fghjkl;")
turtle.done()
\ No newline at end of file
test1=["sdfghjk",'dfghj','sdfghjk']
test1.append("fghjkl")
test1.insert(1,'dfghjk')
test2=['dfghjk']
test1.extend(test2)
test1.pop(0)
print(test1)
test1[0]='啊啊啊啊啊啊'
test1.clear()
print(test1)
dic={"dfhjkl":"2346890","eryuiop":"234567890"}
kk='dfhjkl'
for k,v in dic.items():
if k in dic:
print(v)
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