【问题标题】:How can I schedule a script in pythonanywhere?如何在 pythonanywhere 中安排脚本?
【发布时间】:2021-07-21 12:22:30
【问题描述】:

我有一个 python 脚本,它依赖于我在本地存储的 2 个 Excel 文件。如何在 pythonanywhere.com 中安排此任务?我知道我可以将它们上传到网站,但我不知道如何进行。

【问题讨论】:

    标签: python pythonanywhere cron-task


    【解决方案1】:

    您的 excel 文件必须可用于在 PythonAnywhere 上运行的脚本,因此您需要上传它们或使它们通过网络可用。要设置任务,请转到仪表板上的任务选项卡。从那里您可以将任务设置为每天在一天中的特定时间运行,或者 - 对于付费客户 - 在每小时的特定分钟数每小时运行。看看https://help.pythonanywhere.com/pages/ScheduledTasks/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 1970-01-01
      • 2023-03-13
      • 2011-03-17
      • 1970-01-01
      相关资源
      最近更新 更多