python3.6 占位符(最新最全) 1、python占位符%s,%d,%i,%f %d | %i : 整型:必须填充数字 %s字符串 : %s可以填充字符串也可以填充数字 单双引号配合使用 %f : 默认保留6位小数位,而第7位根据四舍五入取值 2、python占位 f-strings f-strings python3.6版本以上才能使用 来源:CSDN作者:土拨鼠在学习链接:https://blog.csdn.net/weixin_44821208/article/details/100626266 标签 python字符串 python3