debug

1.打点

2.show execution point (Alt+F10)  显示当前所有断点

3.step over(F6)  单步调试。

4.step into(F7) 单步调试。

5.step into my code(Alt + Shift +F7) 执行下一行但忽略libraries

6.force step into(Alt + Shift +F7) 执行下一行忽略lib和构造对象等  

7.step out(F7)当目前执行在子函数a中时,选择该调试操作可以直接跳出子函数a,而不用继续执行子函数a中的剩余代码。并返回上一层函数。

8.run to cursor(Alt +R) 直接跳到下一个断点

心得

1.循环结构的某一初始值需位于循环结构内

2.input默认为字符串

3.需要注意缩进

水仙花数程序

for i in range(m, n):
str1 = str(i)
sum1 = 0
for x in range(0, len(str1)):
j = int(str1[x])
sum1 += j ** len(str1)
if sum1 == i:
print("水仙花数:", i)
posted @ 2019-08-29 22:20  apple122411  阅读(148)  评论(0)    收藏  举报