'str'对象在我的骑行中无法调用

sik*_*sis 3 python

for i in range(1, 27):
    temp=str(i)
    print '%s'(temp.zfill(3))

Traceback (most recent call last):
  File "<ipython console>", line 3, in <module>
TypeError: 'str' object is not callable
Run Code Online (Sandbox Code Playgroud)

我想知道为什么?

因为我希望输出像这样:

001
002
Run Code Online (Sandbox Code Playgroud)

..

021
Run Code Online (Sandbox Code Playgroud)

...

所以我用zfill.但python告诉我它是" str对象不可调用"如何解决它?

NPE*_*NPE 5

你错过%

print '%s' % (temp.zfill(3))
           ^ THIS
Run Code Online (Sandbox Code Playgroud)