当前位置: 移动技术网 > IT编程>脚本编程>Python > python_第一天记录

python_第一天记录

2019年06月27日  | 移动技术网IT编程  | 我要评论

遮那王义经,任务网,shsh123456

  1. 输出语句入门
    1 print('hello', 'world', sep=', ', end='!')
    2 print('goodbye, world', end='!\n')

    sep:在每个字符串中间的间隔      end:结尾添加字符      

  2. 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:引入

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网