You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
898 B
36 lines
898 B
#coding=utf8
|
|
import sys
|
|
import requests
|
|
import json
|
|
import time
|
|
|
|
# #url = 'http://0.0.0.0:5033'
|
|
# """
|
|
# url = 'http://20.0.2.6:5055/classify_event'
|
|
# url = 'http://20.0.2.6:5055/is_about_china'
|
|
# url = 'http://20.0.2.6:5055/associated_words'
|
|
# """
|
|
# url = 'http://127.0.0.1:9008/paper'
|
|
#
|
|
# # url_file ="http://172.18.1.130:9985/group33/default/20230415/09/15/1/“GF-1”影像质量评价及矿区土地利用分类潜力研究_陈明.docx"
|
|
# url_file="/opt/Project_kongtianyuan/inputfile/"
|
|
# filename = "“GF-1”影像质量评价及矿区土地利用分类潜力研究"
|
|
#
|
|
# data = {"url":url_file,"filename":filename}
|
|
# data_str = json.dumps(data)
|
|
#
|
|
# r = requests.post(url,data=str(data_str))
|
|
# print(r.text)
|
|
# # res =json.loads(r.text)
|
|
# # print(res)
|
|
from datetime import datetime
|
|
import os
|
|
path = datetime.now().strftime('%Y-%m-%d')
|
|
if not os.path.exists(path):
|
|
os.makedirs(path)
|
|
|
|
|
|
|
|
|
|
|
|
|