Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .hello-weather.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#!/bin/bash
python hello-weather.py
Python=$(which python3)

if [ ! -x "${Python}" ];then
echo "需要python3环境"
else
python3 hello-weather.py
fi
6 changes: 6 additions & 0 deletions 项目说明.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
��ĿҪ���� �κ����� ʵ��, �� https://weather.com/ ץȡ������ݵ�����, ���������������.

��Ŀ��������python3 ��ȡ https://weather.com/zh-CN/weather/today/l/CHXX0037:1:CH �й�����Ԥ������ҳ����Ϣ
CHXX0037 �ǹ��ݵ�CH���룬��λ�����ݵĽ���������Ϣҳ�棬ʹBeautifulSoup���е���Ϣ��ȡ

��Ŀ˵��������Ŀ�ܹ���ʾ���������������������¶ȣ������/����� ��������ָ�����ͽ�����Ĵ��������������Ϣ