码迷,mamicode.com
首页 > 编程语言 > 详细

[core python programming]chapter 7 programming MS office

时间:2015-05-11 14:31:27      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

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

 

[core python programming]chapter 7 programming MS office

标签:

原文地址:http://www.cnblogs.com/nbalive2001/p/4494424.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!