在tkinter模块中事件绑定方式有哪几种?并简述它们各自的用途。
widget.bind( event,handler)
使用 frame 的 bind 方法将一个 callback方法绑定到一个事件
绑定到 widget instance 使用 bind 方法
绑定到 widget 的 toplevel windows,顶层窗口,也是用 bind
绑定到 widget class,使用 bind_class
暂无解析
以下关于列表和字符串的描述,错误的是:
以下程序的输出结果是:
def test( b = 2, a = 4):
global z
z += a * b
return z
z = 10
print(z, test())