摘要: 转自:https://blog.csdn.net/azsx02/article/details/77649527 Python 对象的延迟初始化是指,当它第一次被创建时才进行初始化,或者保存第一次创建的结果,然后每次调用的时候直接返回该结果。 延迟初始化主要用于提高性能,避免浪费计算,并减少程序的内 阅读全文
posted @ 2020-05-29 02:29 SJL0327 阅读(515) 评论(1) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/kuangzhi9124/article/details/81940919 下面代码设置了单元格的字体、位置居中、框线,可以将格式调成自己需要的 import xlwtstyle = xlwt.XFStyle()#格式信息font = xlwt.Fo 阅读全文
posted @ 2020-05-20 10:57 SJL0327 阅读(3478) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/miaomiaokaixin/p/11497813.html 一:学习内容 python3中六种数据类型 python赋值 python浅拷贝 python深拷贝 二:python3六种数据类型 1.六种数据类型 Number(数字) strin 阅读全文
posted @ 2020-05-14 11:37 SJL0327 阅读(715) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2020-04-27 19:05 SJL0327 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 在flask中,使用url_for 进行路由反转时,需要传递一个endpoint的值,用法如下: @app.route('/', endpoint='my_index') def index(): return 'index page' @app.route('/hello') def hello( 阅读全文
posted @ 2020-03-10 11:27 SJL0327 阅读(521) 评论(0) 推荐(0) 编辑