python_第一天记录
程序员文章站
2022-04-15 15:36:07
sep:在每个字符串中间的间隔 end:结尾添加字符 turtle:引入 ......
-
输出语句入门
1 print('hello', 'world', sep=', ', end='!') 2 print('goodbye, world', end='!\n')
sep:在每个字符串中间的间隔 end:结尾添加字符
-
import turtle turtle.pensize(4) turtle.pencolor('red') turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.mainloop()
turtle:引入