2 Star 0 Fork 1

余诗/autorepo-for-baseos

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
auto-single-batch-json.py 383 Bytes
一键复制 编辑 原始数据 按行查看 历史
余诗 提交于 2023-12-16 14:56 . modify iso pkglist
import json
# 读取本次新增的PackageList
with open("iso-pkglist.txt", "r") as package_file:
package_list = [line.strip() for line in package_file.readlines()]
data = {
"select_pkgs": package_list,
"specify_layers": ["base_layer"]
}
with open("single.json", "w") as json_file:
json.dump(data, json_file, indent=4)
print("JSON文件已生成:single.json")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yushi-Icy/autorepo-for-baseos.git
[email protected]:yushi-Icy/autorepo-for-baseos.git
yushi-Icy
autorepo-for-baseos
autorepo-for-baseos
master

搜索帮助