|
楼主 |
发表于 2023-4-13 14:21:25
|
显示全部楼层
本帖最后由 lzb1001 于 2023-4-13 14:26 编辑
------------------------------------------
Windows 10 专业版 | Python 3.7.6
------------------------------------------
>>> b = "%*10s" % ('*', "黄同学")
Traceback (most recent call last):
File "<pyshell#111>", line 1, in <module>
b = "%*10s" % ('*', "黄同学")
TypeError: * wants int
>>> b = "%*10s" % ("*", "黄同学")
Traceback (most recent call last):
File "<pyshell#112>", line 1, in <module>
b = "%*10s" % ("*", "黄同学")
TypeError: * wants int |
|