def upload_pipe_test(arg):
args = sys.stdin
start_time = time()
ufile = requests.post(
text_server,
data={arg: args.read(),
'content_type': 'application/octet-stream'})
end_time = time()
url = ufile.text
url = url.strip()
usage_time = round(end_time - start_time, 2)
print('upload time: {}s'.format(usage_time))
try:
pyperclip.copy(url)
except NameError:
pass
return url
# opt
评论列表
文章目录