Python的easygui学习

1.调用方法
(1)import easygui
easygui.msgbox(…)
(2)from easygui import
msgbox(…)
2.函数方法
import easygui
a = easygui.msgbox(’…’, title=‘title’) # show a:返回ok,none

b = easygui.enterbox( ‘plaese give a solution:’, default=‘refresh’) # one choice b:返回ok,none

c = easygui.integerbox() # input a int(0~99) c:返回输入的值

d= easygui.choicebox(‘do you want to do?’, choices = [‘1.refresh’, ‘2.exit’, ‘3.change your path’]) # many choice d:返回选项的值

easygui.msgbox(’…’, d)

print(a, , b, , c, d)

猜你喜欢

转载自blog.csdn.net/qq_40791023/article/details/82950615