From df137152036816762dd9c1dea04dd002b033cd65 Mon Sep 17 00:00:00 2001 From: p34709852 Date: Tue, 11 Oct 2022 11:24:10 +0800 Subject: [PATCH 1/5] ADD file via upload --- test_dumps01.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test_dumps01.py diff --git a/test_dumps01.py b/test_dumps01.py new file mode 100644 index 000000000..aab84d61d --- /dev/null +++ b/test_dumps01.py @@ -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) \ No newline at end of file -- 2.34.1 From 7e0f92802ade8a665d1420264ad30c9aa8ffd1b5 Mon Sep 17 00:00:00 2001 From: p34709852 Date: Tue, 11 Oct 2022 11:38:07 +0800 Subject: [PATCH 2/5] ADD file via upload --- test_dumps03.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test_dumps03.py diff --git a/test_dumps03.py b/test_dumps03.py new file mode 100644 index 000000000..aab84d61d --- /dev/null +++ b/test_dumps03.py @@ -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) \ No newline at end of file -- 2.34.1 From 628d21c68bf8d00eabf2380b18c1683c45a5a1af Mon Sep 17 00:00:00 2001 From: p34709852 Date: Tue, 11 Oct 2022 11:41:34 +0800 Subject: [PATCH 3/5] Add requirements.txt --- requirements.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..e7e6c837e --- /dev/null +++ b/requirements.txt @@ -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 \ No newline at end of file -- 2.34.1 From 59e5daecd87d315cf1c3d4f3965aeba07a685419 Mon Sep 17 00:00:00 2001 From: p15670423 Date: Tue, 11 Oct 2022 11:50:19 +0800 Subject: [PATCH 4/5] Update test_dumps03.py --- test_dumps03.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test_dumps03.py b/test_dumps03.py index aab84d61d..882f8ef67 100644 --- a/test_dumps03.py +++ b/test_dumps03.py @@ -1,13 +1 @@ -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) \ No newline at end of file +print('1111') \ No newline at end of file -- 2.34.1 From 69e5b7d088150bf85c0c4d3f3c8c360fc39d1fa1 Mon Sep 17 00:00:00 2001 From: p34709852 Date: Tue, 11 Oct 2022 13:40:38 +0800 Subject: [PATCH 5/5] ADD file via upload --- test03.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test03.txt diff --git a/test03.txt b/test03.txt new file mode 100644 index 000000000..2cb1bce11 --- /dev/null +++ b/test03.txt @@ -0,0 +1 @@ +双方都是的方法烦烦烦烦烦烦 \ No newline at end of file -- 2.34.1