EasyGUI 中的fileopenbox()语句问题-2
使用了fileopenbox()选择文件后就会报错,貌似是系统内有什么东西重复的意思?求教前辈objc: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff99fc9210) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1114b8dc8). One of the two will be used. Which one is undefined.
俺不知道,叫我好友帮你解答吧:@13572044595 chenyiyun 发表于 2019-3-18 19:24
俺不知道,叫我好友帮你解答吧:@13572044595
朋友你太看得起我了,这个问题,我好像也不会,
我 Python 只学到 37 课,
如果是 Python 37 课 以前的 疑问,或许我还能帮忙解答 {:5_107:} 有图莫有,发一张看一看 本帖最后由 chenyiyun 于 2019-3-18 19:44 编辑
我没发生
你easygui安装了没有哇
13572044595 发表于 2019-3-18 19:28
朋友你太看得起我了,这个问题,我好像也不会,
我 Python 只学到 37 课,
如果是 Python 37 课 以前的 ...
这是在做35课作业的时候发现的问题{:5_100:} chenyiyun 发表于 2019-3-18 19:37
有图莫有,发一张看一看
我用的是mac系统,pycharm
import easygui as g
import os
temp = g.fileopenbox(filetypes=['*.txt'])
file = open(temp)
context = file.read()
g.textbox(msg = ('文件【%s】的内容如下:' % (os.path.basename(temp))), title='显示文件内容',text= context)
帮你顶帖~ 要用txt文件 chenyiyun 发表于 2019-3-19 16:43
要用txt文件
是txt 我的windows系统,用的python IDLE运行的,没问题
页:
[1]