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

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.

主站蜘蛛池模板: 武山县| 保亭| 根河市| 隆昌县| 芜湖市| 沙坪坝区| 娱乐| 三门县| 天柱县| 乌兰察布市| 红原县| 越西县| 西安市| 西昌市| 英德市| 永顺县| 禄丰县| 汶上县| 邢台市| 和龙市| 灵川县| 阿瓦提县| 城步| 贺兰县| 阿克| 塔城市| 奇台县| 治县。| 广灵县| 府谷县| 溆浦县| 长垣县| 高邑县| 漠河县| 庆云县| 交口县| 浦县| 齐河县| 若尔盖县| 综艺| 岢岚县|