Connecting to the real world(API)(170124 - 0203)
As we mentioned before, the ultimate goal of programming is to be able to reaalize a program that can solve practical problem. Here comes the opportunity!
The task of ch3: Fetch a API to obtain the real-time weather forecast data, let the inquiry program gather online forecasts runs in CLI, realize these functions:
- Enter the name of city to get the latest weather forecast, including the weather profile,such as temperature/WDIR,etc;
- Enter "Help" to print the HELP text;
- Enter "Quit" to exit the programming;
- Print all the search history before exiting.
The file.py should submit with a README.md attachment.Make sure everyone can understand what you wrote and can run the program and finish all the function.