官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 彰武县| 南城县| 翼城县| 恭城| 武乡县| 肥东县| 延吉市| 盱眙县| 柯坪县| 凌源市| 禄丰县| 焦作市| 怀仁县| 阳西县| 霍林郭勒市| 菏泽市| 沁源县| 上高县| 马尔康县| 长沙县| 本溪| 平度市| 工布江达县| 屯门区| 榆中县| 漾濞| 长宁区| 昌乐县| 那坡县| 富蕴县| 花莲市| 共和县| 洛浦县| 裕民县| 姚安县| 澄城县| 扎兰屯市| 罗源县| 鄱阳县| 西安市| 南昌市|