我是一名Python编程初学者。我写了下面的程序,但没有按照我的要求执行。这里是代码:在Python中嵌套while循环
b=0
x=0
while b<=10:
print 'here is the outer loop\n',b,
while x<=15:
k=p[x]
print'here is the inner loop\n',x,
x=x+1
b=b+1
有人可以帮助我?我会很感激! Regards, Gillani
你想要它做什么?解释更多 – 2009-09-14 12:46:27
输出是什么?你期望它是什么? – erelender 2009-09-14 12:49:35
你想要什么代码? – ariefbayu 2009-09-14 12:49:48