for i in range(10): print(i) for j in range(5): print(j) print("done with j loop") print(i)print("done with i loop")这个例子应该如何修正
时间: 2023-05-22 14:04:07 浏览: 108
python学习记录(控制流)
这个例子缺少了缩进,应该按照 Python 的语法规则加上缩进,可以改为:
for i in range(10):
print(i)
for j in range(5):
print(j)
print("done with j loop")
print("done with i loop")
阅读全文