excel.pyw会有问题,解决如下:

因为python3x中没有tkMessageBox模块,Tkinter改成了tkinter
你可以查看你的py当前支持的模块。
在交互式命令行下输入
>>> help()
>>> modules

前三行改为:

1 from tkinter import Tk
2 from time import sleep
3 from tkinter.messagebox import showwarning

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-28
  • 2021-04-09
  • 2021-12-09
  • 2022-12-23
  • 2021-09-28
  • 2021-09-04
  • 2021-10-16
相关资源
相似解决方案