print-Python
不具有自动数据转换的功能,“+”只能连接相同数据类型
java中string + 基本数据类型,基本数据类型的数据能自动转换成string数据类型
print(“hello {} world {} “.format(x,y))
print(“hello”+str(x)+”world”+str(y))
pass和continue的区别
pass相当于占位符,不具有任何实际意义
while True:
pass
其中pass没有任何实际意义,只是Python不能识别空白,所以pass只是充当while的实体的作用,实际没有任何意义