标签:pre 的区别 空白 作用 数据转换 continue 识别 循环 返回
不具有自动数据转换的功能,“+”只能连接相同数据类型
java中string + 基本数据类型,基本数据类型的数据能自动转换成string数据类型
print(“hello {} world {} “.format(x,y))
print(“hello”+str(x)+”world”+str(y))
while True:
pass
其中pass没有任何实际意义,只是Python不能识别空白,所以pass只是充当while的实体的作用,实际没有任何意义
标签:pre 的区别 空白 作用 数据转换 continue 识别 循环 返回
原文地址:https://www.cnblogs.com/Stephanie-boke/p/11711321.html