摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- from .config import * import requests import json class Bot: def __init__(self, app): self.app = app # a 阅读全文
posted @ 2021-05-19 11:01
介个车车烫屁股
阅读(2198)
评论(0)
推荐(0)
摘要:
1.arrow python的时间处理库,相对于time和datetime等库而言,语法更加简洁。参考文章 #安装 pip install arrow 注意:arrow库1.0版本后,timestamp方法的语法和低版本有点不太一样(目前发现的一个小bug) 2.pysnooper Python调试 阅读全文
posted @ 2021-05-19 00:19
介个车车烫屁股
阅读(73)
评论(0)
推荐(0)
摘要:
1.安装flask pip install Flask 2.第一个程序 #app.py from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if 阅读全文
posted @ 2021-05-19 00:07
介个车车烫屁股
阅读(54)
评论(0)
推荐(0)
摘要:
查看函数执行时长的装饰器 import arrow def runtime(func): def call_func(*args, **kwargs): begin_time = arrow.now().float_timestamp ret = func(*args, **kwargs) end_ 阅读全文
posted @ 2021-05-19 00:03
介个车车烫屁股
阅读(68)
评论(0)
推荐(0)

浙公网安备 33010602011771号