![](https://img-blog.csdnimg.cn/20210412222051674.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python
对python的学习,有关python的东西
Lemon爱吃苹果
每天都有奇迹发生!
展开
-
函数的可变参数问题
'''函数的可变参数'''def showmessage(name, *p_info): print("name:", name) for i in p_info: print(i, end=",") returndef showmoremessage(na, *p_in, **scores): print("name:", na) for i in p_in: print(i, end=",") for item in原创 2021-04-13 21:18:02 · 77 阅读 · 0 评论 -
turtle库,你值得拥有
'''绘制图案为紫色正方形螺旋'''import turtleturtle.setup(400, 360, 400, 200)turtle.pensize(2)turtle.pencolor("yellow")turtle.shape("turtle")turtle.speed(10)a = 5for i in range(40): a = a + 6 turtle.right(90) turtle.fd(a)turtle.hideturtle()turtle.d原创 2021-04-12 22:21:43 · 112 阅读 · 0 评论