如何在python3.6字符串中禁用\n
的新行行为?
例如:
In: >>> a = input("Please enter a sentence: ")
Out: blah blah \n blah
In: >>> print(a)
Out: blah blah \n blah
答案 0 :(得分:1)
id
答案 1 :(得分:-5)
a =输入(“请输入句子:”)
k = list(str(a))
e =''。join(k)
打印(e)中的