mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 14:07:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import yaml
|
||||
|
||||
data = {
|
||||
"name": "python-pyyaml",
|
||||
"versions": ["1", "2"],
|
||||
"group": {
|
||||
"is_a_package": True,
|
||||
"value": 42
|
||||
}
|
||||
}
|
||||
serialized = yaml.dump(data, default_flow_style=False)
|
||||
print(serialized)
|
||||
with open("/tmp/data.yml", "w") as f:
|
||||
f.write(serialized)
|
||||
Reference in New Issue
Block a user