教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 python里的str是什么意思

python里的str是什么意思

发布时间:2020-11-18   编辑:jiaochengji.com
教程集为您提供python里的str是什么意思等资源,欢迎您收藏本站,我们将为您提供最新的python里的str是什么意思资源
python中srt的全称是SubRip Text,srt文件打开方式srt文件可以使用系统自带的文本处理器来打开,比如notepad.exe,write.exe,word等文件处理软件。在Python中,str 表示字符串类 ,也可以是将变量强制转换为字符串的函数,写作str()

Python中的str可以表示字符串类,也可以是将变量强制转换为字符串的函数,写作str()。str函数是Python内置函数的一种,可以直接使用,无需调用。

下面的例子简洁明了的阐述了str的用法

1、str表示字符串,例如

c277ff35d79fc9d734158fd06d19694.png

2、也可以是将变量强制转换为字符串的函数,例如

b3d6d2f92bc1f4ced83b92f0a958888.png

上述输出结果: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中的%是什么意思

    [关闭]
    ~ ~