课程
/后端开发
/Python
/初识Python
for i in list(range(1,101)):
if i <= 99 and L[i] % 7 == 0:
print L[i]
i = i + 1
2017-03-13
源自:初识Python 9-1
正在回答
L=list(range(1,101)) for i in L: if i <= 99 and L[i] % 7 == 0: print (L[i]) i = i + 1
L=list(range(1,101))
print (L[i])
前面加定义L
你根本没定义L
换成range(0,101),i=i+1房子if前面试一试
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序