猿问
python的for循环语句怎么写
python的for循环语句怎么写
慕标琳琳
浏览 981
回答 3
3回答
不负相思意
for循环列表操作方法>>>a = [1,2,3,4]>>>for i in a:>>> print i,1 2 3 4for循环元组赋值>>>x =[('hello','python'),('very','good')]>>>for (a,b) in x:>>> print (a,b)('hello', 'python')('very', 'good')还有for n in range(10)这种写法
0
0
0
随时随地看视频
慕课网APP
相关分类
Python
我要回答