- 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))
推薦閱讀
- 計(jì)算機(jī)網(wǎng)絡(luò)安全技術(shù)(第6版·慕課版)
- 信息系統(tǒng)安全檢測(cè)與風(fēng)險(xiǎn)評(píng)估
- 網(wǎng)絡(luò)安全意識(shí)導(dǎo)論
- 深入淺出隱私計(jì)算:技術(shù)解析與應(yīng)用實(shí)踐
- 網(wǎng)絡(luò)安全技術(shù)及應(yīng)用(第3版)
- 數(shù)字化轉(zhuǎn)型浪潮下的數(shù)據(jù)安全最佳實(shí)踐指南
- CTF競(jìng)賽權(quán)威指南(Pwn篇)
- 網(wǎng)絡(luò)安全能力成熟度模型:原理與實(shí)踐
- CTF那些事兒
- 構(gòu)建新型網(wǎng)絡(luò)形態(tài)下的網(wǎng)絡(luò)空間安全體系
- 黑客攻擊與防范實(shí)戰(zhàn)從入門(mén)到精通
- 黑客攻防入門(mén)
- 動(dòng)態(tài)賦能網(wǎng)絡(luò)空間防御
- 5G網(wǎng)絡(luò)安全規(guī)劃與實(shí)踐
- 網(wǎng)絡(luò)對(duì)抗的前世今生