def btn_action(arg): print(arg) #will print "abc" btn = Button(master=frame1,command=lambda arg="abc":btn_action(arg=arg)).
確定! 回上一頁