阅读背景:

Python “ValueError: incomplete format” print(“a%” % ”)

来源:互联网 

解决python打印%号和%format输出问题

>>> print('%s' %'1')
1
>>> print('%s%' %'1')
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    print('%s%' %'1')
ValueError: incomplete format
>>> print('%s' %



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: