会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
希说
博客园
首页
新随笔
联系
订阅
管理
2022年9月24日
命令行传递 JSON 参数执行 Python 脚本
摘要: 先定义一个简单的 Python 脚本 greeter.py。 # greeter.py import sys import json param = sys.argv[1] user_info = json.loads(param) print(f'Welcome, {user_info["Name
阅读全文
posted @ 2022-09-24 17:33 希说
阅读(2629)
评论(0)
推荐(0)
公告