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="123")
print(end7 + end8 + end9 + end10 + end11 + end12)
输出结果的两个print会最终打印在一行中“
Cheese123Burger”
如果没有end这个变量,会打印出两行来:
Cheese
Burger