python中怎么用循环输出一个很长的字符串

2025-02-27 11:57:39
推荐回答(1个)
回答1:

str1="" str_list=[] for i in range(5): N=input("please enter the number:") str1+=str(N) str_list.append(str(N)) print str1 print str_list