上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: # 安装git# 在git安装目录下,鼠标右键 git bash here进行配置git config --global user.name "isdora" # 配置用户名 git config --global user.email "XXX@qq" # 配置邮箱ssh-keygen -t rs 阅读全文
posted @ 2021-02-14 14:20 小毛编 阅读(40) 评论(0) 推荐(0)
摘要: 参考 :https://www.cnblogs.com/linyfeng/p/8072002.html 高级教程:https://pan.baidu.com/s/1bqWYN0r?errmsg=Auth+Login+Sucess&errno=0&ssnerror=0& 基本概念 bat脚本就是DOS 阅读全文
posted @ 2021-02-14 13:47 小毛编 阅读(418) 评论(0) 推荐(0)
摘要: 转自: https://www.cnblogs.com/BlueSkyyj/p/9415087.html __init__.py的主要作用是: 1. Python中package的标识,不能删除 2. 定义__all__用来模糊导入 3. 编写Python代码(不建议在__init__中写pytho 阅读全文
posted @ 2021-02-10 17:52 小毛编 阅读(615) 评论(0) 推荐(0)
摘要: 右键当前需要运行的py脚本--》Eidt ** Configuration: >Parameters: runserver [此处是参数] 阅读全文
posted @ 2021-02-10 17:34 小毛编 阅读(294) 评论(0) 推荐(0)
摘要: 执行Shell脚本(多种方法) 转自:http://c.biancheng.net/view/739.html 在新进程中运行 Shell 脚本 在新进程中运行 Shell 脚本有多种方法。 1) 将 Shell 脚本作为程序运行 Shell 脚本也是一种解释执行的程序,可以在终端直接调用(需要使用 阅读全文
posted @ 2021-02-09 15:58 小毛编 阅读(813) 评论(0) 推荐(0)
摘要: subprocess.call() 父进程等待子进程完成 返回退出信息(returncode,相当于Linux exit code) subprocess.check_call() 父进程等待子进程完成 返回0 检查退出信息,如果returncode不为0,则举出错误subprocess.Calle 阅读全文
posted @ 2021-02-08 16:07 小毛编 阅读(627) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-02-07 17:08 小毛编 阅读(79) 评论(0) 推荐(0)
摘要: 特殊字符:\.^$?+*{}[]()|re.search 全文一次搜索到停止re.match 全文開頭一次搜索停止def sub_once_a_time(pattern, raw_str): before_str = "0" after_str = raw_str sub_list = [] cou 阅读全文
posted @ 2021-02-05 13:53 小毛编 阅读(62) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/miaoning/p/11450659.html 在Python普通字符串中 在Python中,我们用'\'来转义某些普通字符,使其成为特殊字符,比如 In [1]: print('abc\ndef') # '\n'具有换行的作用 abc def 阅读全文
posted @ 2021-02-05 11:19 小毛编 阅读(2956) 评论(0) 推荐(0)
摘要: 1、https://www.jianshu.com/p/66d7edb96850 * tar czvf filename.tar.gz filename 阅读全文
posted @ 2021-02-01 16:11 小毛编 阅读(271) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页