题解 | 读入字符串
读入字符串
https://www.nowcoder.com/practice/db20629d4e4345c980437b38e92f8ee2
# 提示用户输入内容,并将用户输入的内容赋值给变量 str1
str1 = input("输入:")
# 打印字符串 "输出:" 和用户输入的内容 str1
print("输出:" + str1)
读入字符串
https://www.nowcoder.com/practice/db20629d4e4345c980437b38e92f8ee2
# 提示用户输入内容,并将用户输入的内容赋值给变量 str1
str1 = input("输入:")
# 打印字符串 "输出:" 和用户输入的内容 str1
print("输出:" + str1)
相关推荐