config.js配置如下内容head: [ // 注入到当前页面的 HTML <head> 中的标签 ['script', {}, ` var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?xxxxxxxxxxxxxxxxxxxxxx"; var s = document.getElementsBy...
Python获取程序所在目录local=os.path.dirname(os.path.realpath(sys.argv[0]))Django生成静态资源python manage.py collectstaticPython带下标循环列表for i,value in enumerate(['A', 'B', 'C']): print(i,value)Python格式化当前时间now = time.strftime("%Y-%m-%d %H:%M:%S")Python动态调用函数def main(fun_name): if globals().get...
from func_timeout import func_set_timeout, FunctionTimedOut #装饰器 def time_out(fn, *args, **kwargs): """ 超时控制装饰器 :param args: :param kwargs: :return: """ def wrapper(*args, **kwargs): try: result = fn(*args, **kwargs...