pvim2.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:pvim 作者: Sherlock-Holo 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号