2017年9月8日

turtle库基础练习

摘要: #同心圆import turtleturtle.shape('turtle') turtle.circle(10) turtle.up() turtle.goto(0,-10) turtle.down() turtle.circle(20) turtle.up() turtle.goto(0,-20 阅读全文

posted @ 2017-09-08 09:51 046余博智 阅读(368) 评论(0) 推荐(0)

python 中文乱码解决问题

摘要: 在各种第三方库的测试使用中,有些电脑会有字符集不兼容的问题,比如request的使用,可能会出现此问题 这个问题只需要在你所运行的py文件或命令行前面加上这几行: import ioimport sysimport urllib.requestsys.stdout = io.TextIOWrappe 阅读全文

posted @ 2017-09-08 01:17 046余博智 阅读(433) 评论(0) 推荐(0)

导航