我的问题归结为:
# examplecode
# i want to achieve the string "1.1%"
s = '%s%' % '1.1'
# but this throws me a
ValueError: incomplete format
Run Code Online (Sandbox Code Playgroud)
我可以使用ofc format()
s = '{}%'.format('1.1')
Run Code Online (Sandbox Code Playgroud)
但是有没有办法在a %之后使用a %s?