摘要: 安装: apt-get install netcat 传输文件 步骤1:在接收的机器上监听 nc -l -p port > fname(windows接收的时候务必加-p) 步骤2:在发送的机器上发送 nc ip port < fname 传输文件夹 步骤1:在接收的机器上监听 nc -l -p p 阅读全文
posted @ 2020-10-21 17:56 小小马进阶笔记 阅读(324) 评论(0) 推荐(0)
摘要: decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode('gb2312'),表示将gb2312编码的字符串str1转换成unicode编码。 encode的作用是将unicode编码转换成其他编码的字符串,如str2.encode('gb2312'),表示将unic 阅读全文
posted @ 2020-10-21 17:50 小小马进阶笔记 阅读(143) 评论(0) 推荐(0)