>>> d = {'a':1}
>>> print '%s' % 1,d
1 {'a': 1}
>>> print '%s %s' % 1,d
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string

 

相关文章:

  • 2022-12-23
  • 2021-08-19
  • 2021-06-06
  • 2022-12-23
  • 2021-12-17
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-01-05
  • 2021-06-08
  • 2021-10-10
相关资源
相似解决方案