摘要:
直接打开Python app,出现命令行 turtle.home() 打开面板 turtle.position() 查看当前位置 turtle.heading() 查看当前方向 https://docs.python.org/3/library/turtle.html https://docs.py 阅读全文
posted @ 2022-09-17 10:16
ChuckLu
阅读(166)
评论(0)
推荐(0)
摘要:
What does end=' ' exactly do? So, I'm struggling trying to understand this kinda simple exercise def a(n): for i in range(n): for j in range(n): if i 阅读全文
posted @ 2022-09-17 10:07
ChuckLu
阅读(39)
评论(0)
推荐(0)
摘要:
不用中间变量交换 a ,b(三种方法) 1、加减法:该方法可以交换整型和浮点型数值的变量,但在处理浮点型的时候有可能出现精度的损失 a = a + b; b = a - b; a = a - b; 2、异或法:可以完成对整型变量的交换,对于浮点型变量它无法完成交换。 a = a^b; b = a^b 阅读全文
posted @ 2022-09-17 09:30
ChuckLu
阅读(189)
评论(0)
推荐(0)
摘要:
eval('123')+eval('456') eval('123'+'456') '123'+'456' 123+456 eval('print(12)') 阅读全文
posted @ 2022-09-17 09:07
ChuckLu
阅读(23)
评论(0)
推荐(0)
摘要:
Please stop citing TIOBE What is TIOBE? The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is 阅读全文
posted @ 2022-09-17 00:38
ChuckLu
阅读(58)
评论(0)
推荐(0)

浙公网安备 33010602011771号