如何在Python2.7中使用Python3.5中的语法end=
print(“anything”,end=”anything”)是Python3.5中的语法,想在2.7中使用,就需要在首行添加from future import print_functionfrom __future__ import print_functionnum1 = 0num2 = 0while num1<=5: print (num1,end="_&amp