Python语言程序设计 (第11期) 期末测验: 课程水平综合测验

课程水平综合测验,共4道编程题,限答1次、限时50分钟python 1.无空隙回声输出 描述 得到用户输入,去掉其中所有空格,将其余字符按收入顺序打印输出。 输入输出示例web 输入 输出 Alice + Bob Alice+Bob s = input() s = s.replace(' ', '') print(s) #标答为 txt = input() print(txt.replace("
相关文章
相关标签/搜索