首页 > 其他 > 详细

学习字符串format()函数时,报错:ValueError: cannot switch from manual field specification to automatic field numbering

时间:2020-07-04 20:14:20      阅读:64      评论:0      收藏:0      [点我收藏+]

学习字符串format()函数,执行如下语句时报错:ValueError: cannot switch from manual field specification to automatic field numbering,意思为:值错误:无法从手动字段规范切换到自动字段编号

技术分享图片

 

 技术分享图片

 

原来是因为自动编号和手动编号不能同时使用,所以我在最后一个花括号中填写数值后,再次执行,执行成功

技术分享图片

 

学习字符串format()函数时,报错:ValueError: cannot switch from manual field specification to automatic field numbering

原文:https://www.cnblogs.com/00log/p/13236156.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!