自己写一个弹窗代码:
import easygui
import easygui as g
g.msgbox('ai:我考你一题,你敢不敢?')
g.msgbox(ok_button='敢,放马过来吧')
g.msgbox('ai:明明一天都没有吃饭为什么不饿?')
s=easygui.enterbox('作答区')
easygui.msgbox(s)
box1=['因为我不是明明']
if s in box1:
g.msgbox(ok_button='提交')
easygui.msgbox('你真棒居然答对了')
if s not in box1:
g.msgbox(ok_button='提交')
easygui.msgbox('你真傻答错了')
(此只供展示 无不良引导)