惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
量子位
aimingoo的专栏
aimingoo的专栏
V
V2EX
Vercel News
Vercel News
B
Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
N
News and Events Feed by Topic
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
S
Secure Thoughts
U
Unit 42
博客园 - 叶小钗
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
Help Net Security
Help Net Security
S
Security Affairs
Microsoft Security Blog
Microsoft Security Blog
W
WeLiveSecurity
博客园 - Franky
Forbes - Security
Forbes - Security
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Schneier on Security
Schneier on Security
I
InfoQ
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Webroot Blog
Webroot Blog
AWS News Blog
AWS News Blog
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
C
CERT Recently Published Vulnerability Notes
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
Lohrmann on Cybersecurity
SecWiki News
SecWiki News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
J
Java Code Geeks

博客园 - Pavilion

windows下安装mingw-w64,c/c++编译器 word 文档,高亮关键字,因 DOM 结构复杂(跨段落、跨表格、跨样式)导致滚动定位偏差问题解决方案 安装Mysql macd指标 pyCharm 设置 签名,时间 Pycharm 设置 flask 监听端口 pycharm专业版的安装和破解教程 Python 虚拟环境安装flask框架 Read timed out. Python虚拟环境 解决pip无法更新问题的简单方法:WARNING: You are using pip version 20.2.1; however, version 24.2 is available. pyqt5 列表内添加按钮 RequestsDependencyWarning: urllib3 (2.0.0.dev0) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) PyCharm怎样添加Qt designer 十大排序算法 IntelliJ IDEA安装教程 JDK12的安装搭建 提交并发量的方法:Java GC tuning :Garbage collector VNPY加密教程(Python生成pyd文件) python 绘制点线
python 命令行参数修改
Pavilion · 2025-05-07 · via 博客园 - Pavilion

#适用于大项目
# class Config:
#     def __init__(self):
#         """解析命令行参数"""
#         self.parser= argparse.ArgumentParser(description="文件夹监控工具")
#         # # 被监控目录由命令行参数指定,如果未指定则监控当前目录
#         self.parser.add_argument("--watch_dir", nargs="?", type=str, required=False, help="要监控的目录路径")
#         self.parser.add_argument("--sendTo", nargs="+", type=str, required=False, help="要推送bug的相关人员")  # , default=""
#
#     def update_args_interactive(self):
#         print("\n当前参数:", vars(self.args))
#         new_watch_dir = input("输入新的 watch_dir: ")
#         new_sendTo = int(input("输入新的 sendTo: "))
#         self.args.watch_dir = new_watch_dir
#         self.args.sendTo = new_sendTo
#     def parse_args(self):
#         return self.parser.parse_args()
# config = Config()
# args=config.parse_args()