python里的str是什么意思
Python中的str可以表示字符串类,也可以是将变量强制转换为字符串的函数,写作str()。str函数是Python内置函数的一种,可以直接使用,无需调用。
下面的例子简洁明了的阐述了str的用法
1、str表示字符串,例如
2、也可以是将变量强制转换为字符串的函数,例如
上述输出结果:a = 123,a的类型就是数值型;a = str(a),a的类型就是字符串型了
以上就是python里的str是什么意思的详细内容,更多请关注教程集其它相关文章!
您可能感兴趣的文章:
str python是什么意思
python里的str是什么意思
python里len什么意思
python中swapcase是什么意思
python中r代表什么意思
python len什么意思
python setup.py install是什么意思
python里//什么意思
python input是什么意思
python中的%是什么意思