数据驱动方式尝试

This commit is contained in:
dongxiaoyan
2020-12-15 19:58:08 +08:00
parent da2e33850b
commit fe1127b3a3
16 changed files with 711 additions and 0 deletions

10
05-Other/variable/my3.py Normal file
View File

@@ -0,0 +1,10 @@
def get_variables1():
variables = {"VARIABLE":"An example string",
"ANOTHER VARIABLE":"This is pretty easy!",
"INTEGER":66,
"STRINGS":["one","two","kolme","four"],
"NUMBERS":[1,66,3.1415926],
"MAPPING":'{"one":1,"two":2,"three":3}',
"DXY":'{"one":1,"two":2,"three":${VARIABLE}}'}
return variables