3-1: Object-Oriented Foundation

Source: Internet
Author: User



tags (space delimited): Python


---


###** One, program file description * *

! [List of program Files] (http://static.zybuluo.com/chensiqi/0ikpy5xwgukm4upqzwpab13x/ATM%E6%96%87%E4%BB%B6%E6%B8%85%E5%8D%95.png)

The program is divided into 5 components


-Bin: Launch interface file for Python program placement


> launch folder files via Python command to execute Python program normally

Example: atm_start.py


-Crontab: A scheduled task for placing a Python program launches the interface file


> Program interface files to start Python scripts regularly by configuring scheduled tasks

Example: auto_mission.py


-DB: The configuration file required to place the Python program

> User Profiles generated by the program

Example: Name + ' _log '


-Lib: The public method file required to place the Python program


> Common method layer files for Python code

Example: common.py


-SRC: The business layer files required to place the Python program


> Business layer files for Python code

Example: admin_business.py user_business.py

###** two, program flow diagram * *

! [Program General function flowchart. png-59.7kb] [1]


###** Three, detailed user profile * *

! [USERCONFIG.PNG-27.7KB] [2]


1.name_login: User name for login

2.pwd_login: password When a user logs on

3.account: User bank card number

4.pwd_money: User bank card password

5.tm_text: Time when the user was registered

6.billing_day: Generate Billing time

7.repayment_date: Last Repayment time

8.status: Bank account status

9.cash: Electronic cash balance

10.actual_overdraft: Total overdraft Amount

11.overdraft_limit: Maximum overdraft limit

12.debt_bill_amount: Record of Bill outstanding amount (cumulative)

13.debt_record: The billing history (which is still a dictionary, can be queried according to the billing time.) Example: 2016-11:STR)

14.has_been_out_billing: Billing History (it is still a dictionary, you can follow the billing time, each time you generate a new bill, will not be out of the bill in the records of the list contents of the record and empty the contents of the non-billing flow record table)

15.not_out_billing: No billing record (all the user's operation record)


###** Four, program Test sample chart * *

! [1.PNG-8KB] [3]

! [2.PNG-26.4KB] [4]

! [3.PNG-20.1KB] [5]

! [4.PNG-17.3KB] [6]

! [7.PNG-18.5KB] [7]

! [8.PNG-9.5KB] [8]



[1]: http://static.zybuluo.com/chensiqi/108xpsdjdrm62crvtbn569az/%E7%A8%8B%E5%BA%8F%E5%A4%A7%E8%87%B4%E5%8A%9F% E8%83%bd%e6%b5%81%e7%a8%8b%e5%9b%be.png

[2]: Http://static.zybuluo.com/chensiqi/793tndfhd6118m83jkexxigm/userconfig.png

[3]: Http://static.zybuluo.com/chensiqi/yf3ym0v1hemjro8z4646ffhl/1.png

[4]: Http://static.zybuluo.com/chensiqi/snxss5kv3zf4gndz260m93ib/2.png

[5]: Http://static.zybuluo.com/chensiqi/kndi46x5swk14qwasio577mm/3.png

[6]: Http://static.zybuluo.com/chensiqi/6sixc5fjydsp3hhrb1xqdq1c/4.png

[7]: Http://static.zybuluo.com/chensiqi/413acmjq89oq229ykc91ij4h/7.png

[8]: Http://static.zybuluo.com/chensiqi/g3rn2mznh0qy36cw8loos5xg/8.png


This article is from the "Gale Genesis" blog, please be sure to keep this source http://chensiqi.blog.51cto.com/11683571/1878326

3-1: Object-oriented Basics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.