|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import easygui as e
import os.path as path
msg = '请选择需要打开的文件:'
title = '文件'
default = '/Users/nishokubun/Documents/*.txt'
file_path = e.fileopenbox(msg,title,default=default)
file_name = path.split(file_path)[1]
e.textbox('文件【%s】的内容如下:' % file_name,'内容窗口',text=open(file_path))
跑了下这代码
报了这个错:objc[66601]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/FinderKit (0x1161f73d8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x126f3ef50). One of the two will be used. Which one is undefined.
有大佬指导一下怎么解决吗?
|
|