ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

2021-10-27 第一天

2021-10-27 10:03:57  阅读:144  来源: 互联网

标签:turtle 10 27 help color 50 2021 circle ddd


第一课
#导入海龟绘图模块
import turtle
t = turtle.Pen()
#这是一个循环
for x in range(360):
t.forward(x)
t.left(80)

‘’’
1.刚学习python我很开心
2.生生苦短,相逢何必曾相识
‘’’
4个空格=tab
F5运行代码
#打印
print(“a”)
print(“b”)
print(“c”)

#奥运五环

import turtle
turtle.width(7)
turtle.color(“blue”)
turtle.circle(50)

turtle.penup()
turtle.goto(120,0)
turtle.pendown()
turtle.color(“red”)
turtle.circle(50)

turtle.penup()
turtle.goto(240,0)
turtle.pendown()
turtle.color(“black”)
turtle.circle(50)

turtle.penup()
turtle.goto(60,-50)
turtle.pendown()
turtle.color(“yellow”)
turtle.circle(50)

turtle.penup()
turtle.goto(180,-50)
turtle.pendown()
turtle.color(“green”)
turtle.circle(50)
print()

quit exit 退出

a = 3
sxt = 123
_sxt = 123
3sff
SyntaxError: invalid decimal literal
help
Type help() for interactive help, or help(object) for help about object.
helo()
Traceback (most recent call last):
File “<pyshell#5>”, line 1, in
helo()
NameError: name ‘helo’ is not defined. Did you mean: ‘help’?

help()
help> keywords

Here is a list of the Python keywords. Enter any keyword to get more help.

False class from or
None continue global pass
True def if raise
and del import return
as elif in try
assert else is while
async except lambda with
await finally nonlocal yield
break for not

del 删除
ddd = 0
ddd
0
del ddd
ddd
Traceback (most recent call last):
File “<pyshell#18>”, line 1, in
ddd
NameError: name ‘ddd’ is not defined

标签:turtle,10,27,help,color,50,2021,circle,ddd
来源: https://blog.csdn.net/weixin_42334667/article/details/120986790

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有