Python3.7总结字符串的print和拼接
最新推荐文章于 2024-05-12 20:58:14 发布
这里写目录标题1.print()打印2.使用加号(+)拼接字符串3. 通过占位符进行字符串拼接3.1 通用占位符 %s3.2 小数占位符 %f3.3 %d 整数占位符4. 格式化字符串f"{}{}"5. format()格式化字符串1.print()打印a = "qq"b = "tx"c = "28129019"d = 28129019print(a)print(b)print(c)print(type(d))print(d)控制台输出结果:qqtx2812901
摘要由CSDN通过智能技术生成