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

Modifying the print_output() function

This function is identical to the previous iteration, with the exception of the addition of the newline character \n on line 101. This helps separate entries in the console's output with an extra space. When iterating through the code, we will find that not all functions need updating to improve the user experience, accuracy, or efficiency of the code. Only by modifying an existing function will some sort of benefit be achieved:

093 def print_output(usb_name, usb_date):
094 """
095 Print the information discovered
096 :param usb_name: String USB Name to print
097 :param usb_date: String USB Date to print
098 :return: None
099 """
100 print('Device: {}'.format(usb_name))
101 print('First Install: {}\n'.format(usb_date))
主站蜘蛛池模板: 集安市| 天门市| 灵山县| 文山县| 大英县| 云龙县| 马龙县| 清水县| 贵南县| 闵行区| 禹州市| 通化市| 钟山县| 万州区| 临泉县| 肃南| 施甸县| 蒲城县| 灯塔市| 马边| 若羌县| 太湖县| 佳木斯市| 凉山| 海淀区| 曲阳县| 盘山县| 红河县| 公主岭市| 铜鼓县| 承德县| 平罗县| 桃园县| 明星| 西宁市| 延津县| 永修县| 嵊州市| 静海县| 射洪县| 大埔区|