我想使用%s将两个参数传递给我的字符串。如何在Python中使用几个字符串参数
我想这一点,但没有奏效:
title = "im %s with %s"
title % "programming" % "python"
它给出了这样的错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string
你有一个想法? 谢谢
这是你看在你发现有摆在首位了''%运行在同一个地方回答的东西。 –