例如:
input=7 -> print : 1 2 3 1 2 3 1
input=2 -> print : 1 2
Run Code Online (Sandbox Code Playgroud)
我只能使用下面的代码打印输入整数重复的整个“1 2 3”。(输入=2 -> 打印:1 2 3 1 2 3)
input=7 -> print : 1 2 3 1 2 3 1
input=2 -> print : 1 2
Run Code Online (Sandbox Code Playgroud) python ×1