
1.字符串拼接
https://blog.csdn.net/weixin_42257924/article/details/112512585
关键用法:print("%s,%s" % (str1, str2))
join方法:str_join2 = '-'.join(list1)
2.字符串格式化
https://pythontect.com/python-d-for-formatting-integer-inside-string/
关键用法:print("My age is %d" % (age) )
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)