我有
for i in range(0, 11): print i, "\n", i
Run Code Online (Sandbox Code Playgroud)
我希望我的python程序为每个for循环打印这种方式
第一循环:
1
1
Run Code Online (Sandbox Code Playgroud)
第二循环:
1
2
2
1
Run Code Online (Sandbox Code Playgroud)
第三循环:
1
2
3
3
2
1
Run Code Online (Sandbox Code Playgroud)
我尝试过使用\ r \n或\ 033 [1A但它们只是覆盖了前一行.有没有办法可以"推"输出线,所以我不会覆盖它?