We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
要避免:
s = "" for x in list: s += func(x)
要使用:
slist = [func(elt) for elt in somelist] s = "".join(slist)
import profile def profileTest(): Total =1; for i in range(10): Total=Total*(i+1) print Total return Total if __name__ == "__main__": profile.run("profileTest()") #使用profile
There was an error while loading. Please reload this page.
[[TOC]]