⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profile.py

📁 Yahoo!search API. 用于搜索引擎接口
💻 PY
字号:
#!/usr/bin/pythonfrom yahoo.search import webservicesfrom yahoo.search.debug import DEBUG_LEVELSimport hotshotdef tester():    x = webservices.create_search("web", "YahooDemo", query="leif hedstrom", results=20)    srch = x.parse_results()if __name__ == "__main__":    prof = hotshot.Profile("ysearch.prof", lineevents=1)    prof.runcall(tester)    prof.close()    print "Convert this to a kcachegrind callstack with:"    print "hotshot2calltree -o ysearch.out ysearch.prof"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -