CH5 The database

Outcome of ch5:

webch5.py

How to run:

  1. Collocte webch5.py / s05.py / in the same directory( put index.html in the 'templates' folder;
  2. Run webch5.py in the terminal, and then open a browser and enter'127.0.0.1:5000' , follow the instructions on the page to search the weather forecast.
  3. Enter 'sqlite3 data.sqlite' in the terminal, RETURN ;and enter 'select * from weatherapi ;' and RETURN it, you will see the data is already added to the sqlite.
  4. After you correct the weather information on browser, repeat step 3, you can see the changed data.

Accompany Screenshot of result:

更正前 更正后 数据库

results matching ""

    No results matching ""