Python库推荐
时间:2021-05-24 15:49:46
收藏:0
阅读:0
1.arrow
python的时间处理库,相对于time和datetime等库而言,语法更加简洁。参考文章
#安装
pip install arrow
注意:arrow库1.0版本后,timestamp方法的语法和低版本有点不太一样(目前发现的一个小bug)
2.pysnooper
Python调试神器,使用方法如下:
#安装
pip install pysnooper
#在函数前面加@pysnooper.snoop()即可,调用函数时就会打印执行过程中变量值和运行时间等
@pysnooper.snoop()
def say():
print(‘hello world‘)
评论(0)