- MySQL for Python
- Albert Lukaszewski, PhD
- 125字
- 2021-04-13 17:12:29
While the projection specification that we set for ourselves is fulfilled, there is more that can be done on this program to make it more serviceable in a production environment. Some areas that you might look at for further practice are:
- Set the host, database, username, and password from command-line options. You will naturally need to error-check each of them. You will probably want to use the
getpass
module to accept the password in production environments. - Set an option for the column variable and testing whether that column exists in the chosen database.
- Set up error-checking for the results itself.
The world
database has a few other tables besides City
. Can you aggregate their records in Python without using a JOIN
statement?
推薦閱讀
- Joomla! 1.5 Site Blueprints
- 突破平面Photoshop UI界面設計與制作剖析
- ANSYS 14熱力學·電磁學·耦合場分析自學手冊
- 軟件定義數據中心:技術與實踐
- Adobe After Effects CC 高手之路
- Unity 2D與3D手機游戲開發實戰
- Authorware應用案例教程
- BPEL Cookbook: Best Practices for SOA/based integration and composite applications development
- Cinema 4D 2024+AI工具詳解與實戰(視頻微課·全彩版)
- Excel 2013電子表格處理
- VSTO 3.0 for Office 2007 Programming
- 品悟:Alias 2014+Showcase產品可視化造型與渲染
- 新編三維CAD習題集
- 我為PS狂 Photoshop照片處理一分鐘秘笈
- SolidWorks 2019快速自學寶典