【发布时间】:2014-03-18 09:29:15
【问题描述】:
else:
tkMessageBox.showinfo('Report Created', 'Your report was sucessfully created')
file = 'Student Report.txt'
os.system('TextEdit'+file)
我正在编写一个程序,该程序从数据库中的数据创建报告,将该数据写入文本文件,然后应该启动该文本文件以便可以打印它。
我如何做到这一点?
我曾尝试使用网络浏览器,但没有成功。
【问题讨论】:
标签: python macos file operating-system