Xinxin-python knowledge Review

More children's programming can contact Hou, micro-channel data_ecology
This link: https://blog.csdn.net/houlaos/article/details/102652668
import turtle
# 模块,工具包, 这就是一个导入名字叫做海龟的绘画工具包
# python超过6个字母的单词 左left,右right
# 变量是由数字,字母,下划线组成的
# 数字不能作为开头,不能有标点符号
# 法无禁止即自由
# 你好
# 字符串
# 列表['pubg','LOL',123]
# for循环
# 没学过:字典,元组,while循环,if-else,猜数字游戏,函数def
length = 100
red = 'black'
turtle.color(red)
turtle.speed(0)
for a in range(1000):
    turtle.fd(a)
    turtle.left(123)
turtle.done()

# 变量
# '字符串'
# while循环
# if-else

Guess you like

Origin blog.csdn.net/houlaos/article/details/102652668