如何保持一致?

时间:2019-11-25 03:40:55

标签: python newline

非常感谢您看这个简单的问题!

这是问题所在:在此示例代码中,如何使python停留在同一行而不是移至新行?是的,这是非常简单的编程...我还在学习。

在此处输入代码

end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"

print( end1 + end2 + end3 + end4 + end5 + end6, end =" ")
print( end7 + end8 + end9 + end10 + end11 + end12)
print("It's fleece is white., (end =" "))
print("You bet this is still on the same line!")

第一个end =“”可以很好地用于输出奶酪汉堡,但是下一个打印根本不起作用。任何帮助表示赞赏!

1 个答案:

答案 0 :(得分:0)

我不确定自己要做什么,但这可能行得通

finish()