上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 97 下一页
摘要: 说明:__init__.py这个文件本人使用频率不高 例子: __init__.py文件作用:初始化这个包 1、v1.py def vi(): return 'views' 2、views->__init__.py from .v1 import vi 3、test1.py from views i 阅读全文
posted @ 2019-12-21 22:45 市丸银 阅读(301) 评论(0) 推荐(0)
摘要: git config user.name 查看用户名 git config user.email 查看用户邮箱 修改用户名和邮箱的命令 git config --global user.name "Your_username"git config --global user.email "Your_ 阅读全文
posted @ 2019-12-21 17:32 市丸银 阅读(8497) 评论(0) 推荐(0)
摘要: 网址:https://pypi.org/project/Flask-Script/ 文档:https://flask-script.readthedocs.io/en/latest/ 1、安装 2、新建manager.py文件 3、导入Manager和app 4、代码 from flask_scri 阅读全文
posted @ 2019-12-20 22:10 市丸银 阅读(154) 评论(0) 推荐(0)
摘要: 代码照旧 阅读全文
posted @ 2019-12-19 22:26 市丸银 阅读(327) 评论(0) 推荐(0)
摘要: 目的:在远程分支上添加新文件(代码) 1、clone分支 git clone -b 分支 url cd到文件夹,添加文件到改目录下 2、创建新的分支并切换 git checkout -b dev(本地新分支) 3、添加文件到分支(本地) git add 文件名称 4、提交 git commit -m 阅读全文
posted @ 2019-12-18 22:46 市丸银 阅读(146) 评论(0) 推荐(0)
摘要: 高级的 文件、文件夹、压缩包 处理模块 shutil.copyfileobj(fsrc, fdst[, length])将文件内容拷贝到另一个文件中 import shutil shutil.copyfileobj(open('old.xml','r'), open('new.xml', 'w')) 阅读全文
posted @ 2019-12-17 21:50 市丸银 阅读(16131) 评论(0) 推荐(0)
摘要: 线程池的两张方法 submit 和map from concurrent.futures import ThreadPoolExecutor import time # def sayhello(a): time.sleep(2) return "hello: "+a def main(): see 阅读全文
posted @ 2019-12-13 10:00 市丸银 阅读(539) 评论(0) 推荐(0)
摘要: # 1、克隆到本地 git clone url git clone -b 分支 url # 注意:克隆完成后,要删除.git隐藏文件夹 # 2、修改代码 # 3、生成master git init git status git add . git commit -m 'test' # 4、起别名 g 阅读全文
posted @ 2019-12-11 22:07 市丸银 阅读(142) 评论(0) 推荐(0)
摘要: 0、基础 1、上下左右移动 2、合并后居中 3、单元格自适应内容:右边线(十字)->双击 3、单元格样式 4、设置相同的高度和宽度:选择内容->在交界线(十字)->移动鼠标 5、设置单元格格式: 右击 6、今天日期:ctrl+;+enter ????? 7、从下拉列表中选择:选择单元格->右击 8、 阅读全文
posted @ 2019-12-04 23:08 市丸银 阅读(635) 评论(0) 推荐(0)
摘要: 一、生成一段时间范围 1、语法 pd.date_range(start=None, end=None, periods=None, freq=None) # start、end和freq配合能够生成start和end范围内频率freq的一组时间索引 # start、periods和freq配合能够生 阅读全文
posted @ 2019-12-04 13:33 市丸银 阅读(468) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 97 下一页