为了账号安全,请及时绑定邮箱和手机立即绑定

读取不出表格

C:\Users\25307\PycharmProjects\pythonProject\venv\Scripts\python.exe C:\Users\25307\PycharmProjects\pythonProject\shujuduqu.py 

Traceback (most recent call last):

  File "C:\Users\25307\PycharmProjects\pythonProject\shujuduqu.py", line 2, in <module>

    df=pd.read_excel('三亚理工职业学院2022—2023学年第二学期学院专业课期末考试安排0615.xlsx')

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\25307\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\io\excel\_base.py", line 478, in read_excel

    io = ExcelFile(io, storage_options=storage_options, engine=engine)

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\25307\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\io\excel\_base.py", line 1496, in __init__

    ext = inspect_excel_format(

          ^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\25307\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\io\excel\_base.py", line 1371, in inspect_excel_format

    with get_handle(

         ^^^^^^^^^^^

  File "C:\Users\25307\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\io\common.py", line 868, in get_handle

    handle = open(handle, ioargs.mode)

             ^^^^^^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: '三亚理工职业学院2022—2023学年第二学期学院专业课期末考试安排0615.xlsx'


进程已结束,退出代码1


正在回答

1 回答

文件目录写错了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

读取不出表格

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信