擅长:python、mysql、java
<p>您正在捕获os.system创建的进程的返回代码,它是一个整数</p>
<p>为什么不使用urllib模块中的request类在python中执行该操作呢</p>
<pre><code>import urllib.request
import json
urllib.request.urlretrieve('https://anonfile.com/api/upload', save_file)
json_dict = json.load(save_file)
print(json_dict['data']['file']['url']['short']) # https://anonfile.com/y000H35fn3
</code></pre>
<p>或者,如果不需要保存文件,可以使用请求库:</p>
<pre><code>import requests
json_dict = requests.get('https://anonfile.com/api/upload').json()
print(json_dict['data']['file']['url']['short']) # https://anonfile.com/y000H35fn3
</code></pre>