数据类型转换
数据类型转换 str() 其他数据转换为字符串 1234567name ='张三'age = 20print(name,type(name))print(age,type(age))# name 与 age 数据类型不同# print(name + age) 报错print(name + str(age)) 张三 <class 'str'> 20 <class 'int'> 张三20 str() 其他数据转换为字符串12345a = 10b = 198.01c = Falseprint(type(a),type(b),type(c))print(str(a),str(b),str(c),type(str(a)),type(str(b)),type(str(c))) <class 'int'> <class 'float'> <class 'bool'> 10 198.01 False <class '...
test
默认 提示块标签 default 提示块标签 primary 提示块标签 success 提示块标签 info 提示块标签 warning 提示块标签 danger 提示块标签 默認 提示塊標簽 default 提示塊標簽 primary 提示塊標簽 success 提示塊標簽 info 提示塊標簽 warning 提示塊標簽 danger 提示塊標簽
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment



