Ryan_c 发表于 2019-3-18 13:49:00

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.

chenyiyun 发表于 2019-3-18 19:24:13

俺不知道,叫我好友帮你解答吧:@13572044595

13572044595 发表于 2019-3-18 19:28:48

chenyiyun 发表于 2019-3-18 19:24
俺不知道,叫我好友帮你解答吧:@13572044595

朋友你太看得起我了,这个问题,我好像也不会,
我 Python 只学到 37 课,
如果是 Python 37 课 以前的 疑问,或许我还能帮忙解答

chenyiyun 发表于 2019-3-18 19:36:25

{:5_107:}

chenyiyun 发表于 2019-3-18 19:37:33

有图莫有,发一张看一看

chenyiyun 发表于 2019-3-18 19:39:50

本帖最后由 chenyiyun 于 2019-3-18 19:44 编辑

我没发生
你easygui安装了没有哇

Ryan_c 发表于 2019-3-18 22:26:27

13572044595 发表于 2019-3-18 19:28
朋友你太看得起我了,这个问题,我好像也不会,
我 Python 只学到 37 课,
如果是 Python 37 课 以前的 ...

这是在做35课作业的时候发现的问题{:5_100:}

Ryan_c 发表于 2019-3-18 22:28:18

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)

13572044595 发表于 2019-3-19 10:08:43

帮你顶帖~

chenyiyun 发表于 2019-3-19 16:43:03

要用txt文件

Ryan_c 发表于 2019-3-20 15:45:16

chenyiyun 发表于 2019-3-19 16:43
要用txt文件

是txt

杰维斯 发表于 2020-4-18 16:38:47

我的windows系统,用的python IDLE运行的,没问题
页: [1]
查看完整版本: EasyGUI 中的fileopenbox()语句问题-2