请教一下各位这个为什么要加while循环,我试了没加的那个代码输入一行就直接退出来了
循环啊,没有while 就执行一次。while 1 相当于range(1000000000),不加相当于range(1) 明白了把