from easygui import *
text = "选择您的兴趣爱好"
title = "个人信息"
# 选项
choices = ["篮球", "足球", "电玩", "漫画", "健身"]
def cb(v):
print(v.choices)
v.stop()
# 创建一个multchoicebox
output = multchoicebox(text,title, choices=choices,callback=cb)
# 信息提示框标题
title = "兴趣爱好"
# 信息
message = "您选择了:" + str(output)
# 用信息提示框显示用户的选择
msg = msgbox(message, title)