BS 0.1.0 EasySave
This commit is contained in:
20
[Test]/test.json
Normal file
20
[Test]/test.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"easy": {
|
||||
"__type": "__main__.test_log, Global",
|
||||
"value": {
|
||||
"__type": "__main__.test_log, Global",
|
||||
"model_computed_fields": {
|
||||
"__type": "typing.Any, Global"
|
||||
},
|
||||
"model_extra": null,
|
||||
"model_fields": {
|
||||
"__type": "typing.Any, Global"
|
||||
},
|
||||
"model_fields_set": {
|
||||
"__type": "typing.Any, Global"
|
||||
},
|
||||
"test_field": 1,
|
||||
"test_field_2": "test"
|
||||
}
|
||||
}
|
||||
}
|
@@ -3,9 +3,18 @@ import os
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from Convention.Runtime.Config import *
|
||||
from Convention.Runtime.EasySave import *
|
||||
|
||||
class test_log(BaseModel):
|
||||
test_field:int
|
||||
test_field_2:str
|
||||
|
||||
def run():
|
||||
print_colorful(ConsoleFrontColor.RED,"test")
|
||||
SetInternalDebug(True)
|
||||
SetInternalReflectionDebug(True)
|
||||
SetInternalEasySaveDebug(True)
|
||||
test = test_log(test_field=1,test_field_2="test")
|
||||
EasySave.Write(test,"test.json")
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
|
3
[Test]/test0.py
Normal file
3
[Test]/test0.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import math
|
||||
import r
|
||||
print(re.findall(r"\d+[.\d]?", "xxxxx$19.99"))
|
Reference in New Issue
Block a user