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

  • Learning Python for Forensics
  • Preston Miller Chapin Bryce
  • 115字
  • 2021-08-20 10:17:11

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))
主站蜘蛛池模板: 龙江县| 崇义县| 溆浦县| 德惠市| 荔浦县| 镇安县| 定边县| 黔西县| 贺兰县| 博野县| 阳城县| 四子王旗| 西城区| 临城县| 耿马| 丁青县| 清远市| 德兴市| 沛县| 隆尧县| 封丘县| 富裕县| 高陵县| 荔浦县| 大同市| 汝城县| 河曲县| 柳林县| 北海市| 哈巴河县| 浏阳市| 西和县| 宜阳县| 东至县| 乌恰县| 锡林浩特市| 韩城市| 喀喇沁旗| 比如县| 邵武市| 天台县|