- Learning Python for Forensics
- Preston Miller Chapin Bryce
- 128字
- 2021-08-20 10:17:07
User input
Allowing user input enhances the dynamic nature of a program. It is a good practice to query the user for file paths or values rather than explicitly writing this information into the code file. Therefore, if the user wants to use the same program on a separate file, they can simply provide a different path, rather than editing the source code. In most programs, users supply input and output locations or identify which optional features or modules should be used at runtime.
User input can be supplied when the program is first called or during runtime as an argument. For most projects, it is recommended to use command-line arguments because asking the user for input during runtime halts the program execution while waiting for the input.
推薦閱讀
- API安全實戰
- Python Penetration Testing Cookbook
- Testing and Securing Android Studio Applications
- Spring Security(Third Edition)
- Learning Devise for Rails
- Advanced Penetration Testing for Highly:Secured Environments(Second Edition)
- 解密數據恢復
- SQL Injection Strategies
- 持續集成:軟件質量改進和風險降低之道
- 云計算安全:關鍵技術、原理及應用
- Practical Mobile Forensics
- 黑客攻防從入門到精通:黑客與反黑客工具篇(第2版)
- 黑客攻防從入門到精通:實戰篇(第2版)
- Developing Applications with Salesforce Chatter
- 計算機病毒揭秘與對抗