diff --git a/基本结构/042 restful/tf-35-request.py b/基本结构/042 restful/tf-35-request.py deleted file mode 100644 index 235a88e..0000000 --- a/基本结构/042 restful/tf-35-request.py +++ /dev/null @@ -1,10 +0,0 @@ -import requests -from cppy.cp_util import * - -url = 'http://127.0.0.1:5000/word_frequency' -data_list = extract_file_words(testfilepath) -data = { - 'file': data_list -} -response = requests.post(url, json=data) -print(response.json()[:10])