【文件属性】:
文件名称:Otter-Weather
文件大小:1.53MB
文件格式:ZIP
更新时间:2021-05-04 14:14:21
HTML
水獭天气
先决条件
的Python 3
任何现代浏览器
安装
将此存储库克隆到您选择的目录,然后在新的Python 3虚拟环境中运行以下命令:
pip install -r /path/to/requirements.txt
(将“ /path/to/requirements.txt”替换为该程序的requirements.txt文件的路径。)
跑步
重击
有两种选择。 在“水獭天气”目录的根目录中:
输入chmod +x flaskrun.sh (只需要做一次)
其次是source flaskrun.sh 该脚本将通过Flask自动运行app.py。
或者
在Otter Weather目录的根目录中运行以下命令:
export FLASK_APP=app.py
export FLASK_DEBUG=1
flask run
电源外壳
在Otter Weather应用程序的目录中
【文件预览】:
Otter-Weather-master
----configure.py(370B)
----.DS_Store(6KB)
----app.py(2KB)
----requirements.txt(598B)
----flaskrun.sh(54B)
----LICENSE(1KB)
----ex_forcast.txt(30KB)
----README.md(1KB)
----pyconverter.py(3KB)
----templates()
--------index.html(23KB)
--------about.html(4KB)
----.gitignore(2KB)
----api.py(8KB)
----flaskrun.ps1(52B)
----static()
--------.DS_Store(6KB)
--------styles.css(4KB)
--------styleAbout.css(3KB)
--------Images()