【文件属性】:
文件名称:PythonTools:我为个人使用而创建的Python工具集合
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-10 01:01:13
Python
Python工具
我为个人使用而创建的Python工具集合。
目录
1.进口
import python_tools as pt
2.包装器
2.1。 调试包装器@debug
调试包装程序,它打印有关函数调用的一些有用信息。
2.1.1。 如何使用
可以通过将相应的装饰器放置在函数的声明上方来使用此包装器。
@ pt . debug
def a_function ( x , y , z ):
pass
2.1.2。 预期产量
--debug--debug--debug--debug--debug--debug--debug--debug--debug--debug--
-- Function: a_function(x, y, z)
-- Arguments: (1, 2, 3)
-- Returned: None
-- Time elapsed [
【文件预览】:
PythonTools-main
----.gitignore(2KB)
----README.adoc(2KB)
----python_tools()
--------__init__.py(61B)
--------wrappers.py(2KB)
--------math_tools.py(1KB)
----LICENSE(1KB)
----test()
--------__init__.py(0B)
--------test_math_tools.py(2KB)