About the python2.x and 3.x to bring the print does not wrap the problem: Yesterday had a push text, using the end = definition, to solve the small horizontal problem, but because of the screen display problem, if the string length is too large, it will cause inconvenience. Two or more print to split the case, how to maintain the horizontal output, the general is at the end of the print with a comma (,) but under 3.x, then no, need to use end = "(something)", some signs like,. ; ' also can put a word or str in '.
############################################
end1 = "J"
end2 = "U"
end3 = "s"
End4 = "T"
End5 = "T" C6/>end6 = "E"
End7 = "s"
End8 = "T"
print (end1 + end2 + end3 + end4,end = "")
print (End5 + End6 + End7 + End8)
############################################
Explain: You can, I put a space
between ""
There is something in your screens:
Just test all the codes is run in
python 3.2,if you write the Cod Es in Pythons 2.x,like python2.7,
##################################################
end1 = "J"
End2 = "U"
end3 = "s"
End4 = "T"
End5 = "T"
End6 = "E"
End7 = "s"
End8 = "T"
print (End1 + end2 + End3 + end4,)
print (End5 + end6 + End7 + end8)
#################################################
That's all,in python 2.x
so the differences
are: 3.2 end = ""
2.7,
Above this python in the print of the instant output fast solution is small series to share all the content, hope to give you a reference, but also hope that we support cloud habitat community.