猫史档案馆


tkinter极简聊天机器人[python3.6.5]

用户:CBSCBS查看: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()

截图:center_image

代码下载(ps:py文件):

因为此贴不可放置文件,不可以下载,请到https://shequ.svipking.top/t/6.html下载


回复

上一页1 页 / 共 1下一页
CBSCBS

因为相关原因,部分代码屏蔽成喵喵喵,请到https://shequ.svipking.top/?t/6.html下载源代码

点赞0


评论


wwwloadwwwload

这是自动回复机器人吗

点赞0


评论


Albert钟Albert钟

。。这,有点太“极简”了QwQ

点赞0


评论