02 2021 档案
摘要:git 压缩: tar czvf 文件名.tar.gz 文件目录 git 打 tag: git tag -a v3.0.1 -m "optimize something" # 本地分支打tag git push origin dev #将本地改动全部提交到远程分支 git push origin -
阅读全文
摘要:转自:https://blog.csdn.net/Irving_zhang/article/details/79087569 我们为什么要使用requirements.txt呢? 主要使用目的: 任何应用程序通常需要设置安装所需并依赖一组类库来满足工作要求。要求文件是指定和一次性安装包的依赖项具体一
阅读全文
摘要:# basicfrom flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World' if __name__ == '__main__': app.run() 简介:W
阅读全文
摘要:windows 下安装sql: 参考: https://zhuanlan.zhihu.com/p/37152572 1、下载 installer: from https://www.mysqltutorial.org/install-mysql/ 2、本机mysql相关卸载干净 && 正在运行的my
阅读全文
摘要:# 安装git# 在git安装目录下,鼠标右键 git bash here进行配置git config --global user.name "isdora" # 配置用户名 git config --global user.email "XXX@qq" # 配置邮箱ssh-keygen -t rs
阅读全文
摘要:参考 :https://www.cnblogs.com/linyfeng/p/8072002.html 高级教程:https://pan.baidu.com/s/1bqWYN0r?errmsg=Auth+Login+Sucess&errno=0&ssnerror=0& 基本概念 bat脚本就是DOS
阅读全文
摘要:转自: https://www.cnblogs.com/BlueSkyyj/p/9415087.html __init__.py的主要作用是: 1. Python中package的标识,不能删除 2. 定义__all__用来模糊导入 3. 编写Python代码(不建议在__init__中写pytho
阅读全文
摘要:右键当前需要运行的py脚本--》Eidt ** Configuration: >Parameters: runserver [此处是参数]
阅读全文
摘要:执行Shell脚本(多种方法) 转自:http://c.biancheng.net/view/739.html 在新进程中运行 Shell 脚本 在新进程中运行 Shell 脚本有多种方法。 1) 将 Shell 脚本作为程序运行 Shell 脚本也是一种解释执行的程序,可以在终端直接调用(需要使用
阅读全文
摘要:subprocess.call() 父进程等待子进程完成 返回退出信息(returncode,相当于Linux exit code) subprocess.check_call() 父进程等待子进程完成 返回0 检查退出信息,如果returncode不为0,则举出错误subprocess.Calle
阅读全文
摘要:print(res) import re list = re.findall(r'\>(.*)\<', res) # 提取bytes文本,预防含有特殊字符 print(list) print(type(list[0])) for i in range(len(list)): if "\\" in l
阅读全文
摘要:特殊字符:\.^$?+*{}[]()|re.search 全文一次搜索到停止re.match 全文開頭一次搜索停止def sub_once_a_time(pattern, raw_str): before_str = "0" after_str = raw_str sub_list = [] cou
阅读全文
摘要:转自:https://www.cnblogs.com/miaoning/p/11450659.html 在Python普通字符串中 在Python中,我们用'\'来转义某些普通字符,使其成为特殊字符,比如 In [1]: print('abc\ndef') # '\n'具有换行的作用 abc def
阅读全文
摘要:1、https://www.jianshu.com/p/66d7edb96850 * tar czvf filename.tar.gz filename
阅读全文
摘要:Shell 是一种脚本语言 任何代码最终都要被“翻译”成二进制的形式才能在计算机中执行。有的编程语言,如 C/C++、Pascal、Go语言、汇编等,必须在程序运行之前将所有代码都翻译成二进制形式,也就是生成可执行文件,用户拿到的是最终生成的可执行文件,看不到源码。这个过程叫做编译(Compile)
阅读全文
摘要:*** https://www.cnblogs.com/hnio/p/13663839.html ## adb shell pm 命令 https://developer.android.com/studio/command-line/adb#pm http://laogui.uicp.top/pr
阅读全文
摘要:虚拟内存 如果我们运行的程序较多,占用的空间就会超过内存(内存条)容量。例如计算机的内存容量为2G,却运行着10个程序,这10个程序共占用3G的空间,也就意味着需要从硬盘复制 3G 的数据到内存,这显然是不可能的。操作系统(Operating System,简称 OS)为我们解决了这个问题:当程序运
阅读全文