♻️ Refactor project structure by removing scattered Python test scripts

This commit is contained in:
2026-05-24 07:25:50 +08:00
parent b71ccc41b2
commit d65991aa9d
31 changed files with 0 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
from pydantic import BaseModel
class Person(BaseModel):
name: str
age: int
if __name__ == "__main__":
x = '{"name": "hatter", "age": 18}'
p = Person.model_validate_json(x)
z = p.model_dump_json(indent=4)
print(x)
print(p)
print(z)
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import json
if __name__ == "__main__":
x = '{"name": "hatter", "age": 18}'
y = json.loads(x)
z = json.dumps(y, indent=4, sort_keys=True)
print(x)
print(y)
print(z)