Compare commits

...

5 Commits

Author SHA1 Message Date
p34709852 69e5b7d088 ADD file via upload 2022-10-11 13:40:38 +08:00
p15670423 59e5daecd8 Update test_dumps03.py 2022-10-11 11:50:19 +08:00
p34709852 628d21c68b Add requirements.txt 2022-10-11 11:41:34 +08:00
p34709852 7e0f92802a ADD file via upload 2022-10-11 11:38:07 +08:00
p34709852 df13715203 ADD file via upload 2022-10-11 11:24:10 +08:00
4 changed files with 23 additions and 0 deletions

8
requirements.txt Normal file
View File

@ -0,0 +1,8 @@
allure_python_commons==2.8.17
jsonpath==0.82
loguru==0.5.1
pandas==1.1.5
PyMouse==1.0
pytest==6.2.5
pywin32==301
selenium==3.141.0

1
test03.txt Normal file
View File

@ -0,0 +1 @@
双方都是的方法烦烦烦烦烦烦

13
test_dumps01.py Normal file
View File

@ -0,0 +1,13 @@
import json
data = {
'name' : 'myname',
'age' : 100,
}
# separators:是分隔符的意思参数意思分别为不同dict项之间的分隔符和dict项内key和value之间的分隔符后面的空格都除去了.
# dumps 将python对象字典转换为json字符串
json_str = json.dumps(data, separators=(',', ':'))
print(type(json_str), json_str)
# loads 将json字符串转化为python对象字典
pyton_obj = json.loads(json_str)
print(type(pyton_obj), pyton_obj)

1
test_dumps03.py Normal file
View File

@ -0,0 +1 @@
print('1111')