我正在尝试将嵌套的for循环更改为嵌套的while循环。我尝试了几种不同的方法,但每次尝试都得不到预期的结果:T=1 T=1 T=2 T=4 T=5 T= 11 R= 30 public static void main(String[] args) int s = 0; //first for-loop i'm trying to make a while
我有以下永不结束的while-loop: i = len(taglist) - 1 print("i, at the beginning: " + str(i))+ str(i)) print("i, after update: " + str(i)) 这将导致反复打印以下结果: ...i, a little further: