【问题标题】:Only run part of script in spyder IDE - Windows OS仅在 spyder IDE 中运行部分脚本 - Windows 操作系统
【发布时间】:2023-01-20 21:52:29
【问题描述】:

我在 spyder 中有一个 python 脚本可以读取大型 Excel 电子表格

#imports

first = pd.read_excel('first.xlsx')
second = pd.read_excel('second.xlsx')

#rest_of_code

我正在处理 #rest_of_code 部分,需要运行此部分进行调试等。电子表格不会更改,因此我不需要每次运行脚本时都阅读它们。我只想运行脚本的 #rest_of_code 部分(使用 excel 电子表格)来加快速度。我正在使用 sypder IDE,但不确定如何实现。这是针对 Windows 操作系统的,因此不能使用 Mac 快捷方式

【问题讨论】:

    标签: python pandas ide spyder


    【解决方案1】:

    我遇到了同样的问题,只需选择要运行的单元格并按“F9”即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-22
      • 2019-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-09
      • 2012-03-29
      • 2023-03-08
      相关资源
      最近更新 更多