for循环Python for循环 [英] For loop in for loop Python

查看:118
本文介绍了for循环Python for循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在for循环中为Python的代码写循环,



我知道在C中编写代码,但是我对python没有任何意见。 >

我试过,但是我不能管理那个



请把我抬起来,

也许你应该给我们更多关于你想做什么的信息。任何方式,如何完成:

 对于范围(0,10)中的i1:
对于范围内的i2 0,10):
print i1,i2


I need to write for loop in for loop for my Python pragramme,

I know writing that in C, but I dont have any idea about python

I tried but I cannot manage that

Please rise me up ,

解决方案

maybe you should give us more info about what you'r trying to do. any way this how its done:

for i1 in range(0,10):
     for i2 in range(0,10):
         print i1, i2

这篇关于for循环Python for循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆