from time import sleep
import requests
s = input('請(qǐng)輸入話題:')
while True:
resp = requests.post("http://www.tuling123.com/openapi/api", data={'key':'4fede3c4384846b9a7d0456a5e1e2943', 'info': s,})
resp = resp.json()
sleep(1)
print('【1號(hào)選手】:', resp['text'])
s = resp['text']
resp = requests.get("http://api.qingyunke.com/api.php", {'key': 'free', 'appid':0, 'msg':s})
resp.encoding='utf8'
resp = resp.json()
s = resp['content']
print('【2號(hào)選手】:', s)
人肉搬運(yùn)自知乎:你都用 Python 來做什么? - Jeffersli的回答