用户:
CBS查看:10 回复:3 评论:10 创建时间:2021-07-06T09:18:52
代码:
软件代码:
import requests,tkinter as tk
window = tk.Tk()
window.title('聊天机器人v3.3')
window.geometry('1000x600')
entry = tk.Entry(window)
entry.place(width = 1000,height = 250,x = 60)
def get():
t = tk.Label(window,text="机器人:" + requests.get('http://api.qingyunke.com/api.php?key=free&appid=0&msg='+entry.get()).json()["content"]).place(width=1000, height=250, y=300)
tk.Button(window, text="点此回复", command=get).place(height = 250)
tk.Label(window,text = "请输入").place(width=1000, height=250,y = 300)
window.mainloop()
截图:
代码下载(ps:py文件):
因为此贴不可放置文件,不可以下载,请到https://shequ.svipking.top/t/6.html下载