btn1=Button(root,text="测试bind绑定").pack(side="left")
btn1.bind("<Button-1>",mouseTest1老师,为什么这么写会报错,pack不能直接跟在Button方法的后面,改成下面这样就好了
btn1=Button(root,text="测试bind绑定")
btn1.pack(side="left")
btn1.bind("<Button-1>",mouseTest1这个pack什么情况下不能直接跟在Button方法后面,有没有什么逻辑,你看我这样写又好了
btn2=Button(root,text="测试command绑定",command=lambda:mouseTest2("爱","你")).pack(side="left")