Commit 2a418229 by BellCodeEditor

auto save

parent 0c632881
Showing with 7 additions and 8 deletions
import turtle
# 对字符串进行操作:需要先转换成列表,在对列表进行操作,之后再转换回字符串
str = "这周末放假"
pen = turtle.Pen()
lists = list(str)
lists.insert(5,"两天")
strs = "".join(lists)
pen.write("超人最帅",font=("",60,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
print(strs)
\ No newline at end of file
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