a = input('Please enter a string:')
b = input('Please enter a string:')
c = input('Please enter a string:')
d = input('Please enter a string:')
e = input('Please enter a string:')
f = a + b + c + d + e
print(f)
本关任务:编写程序,从键盘输入5个字符串,将它们连接成一个字符串后输出。
Please enter a string:1
Please enter a string:2
Please enter a string:abc
Please enter a string:3
Please enter a string:xyz
这是一个简单的Python程序,它接收用户输入的五个字符串,并将它们连接成一个单一的字符串进行输出。例如,输入'1', '2', 'abc', '3', 'xyz',程序将输出'12abc3xyz'。
1万+

被折叠的 条评论
为什么被折叠?



