上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: 初识文件操作 使用open()函数打开一个文件,获取到文件句柄,然后通过文件句柄就可以进行各种各样的操作了,根据打开文件的方式不同能够执行的操作也会有相应的差异。 打开文件的方式: r, w, a, r+, w+, a+, rb, wb, ab, r+b, w+b, a+b 默认使用的是r(只读)模 阅读全文
posted @ 2019-10-23 16:26 刘_love_田 阅读(586) 评论(0) 推荐(0) 编辑
摘要: try-except 语句 def div_apple(n): print("%d个苹果你想要分给几个人" % n) s = input("请输入人数...") # 此处可能会引起valueError类型的错误 cnt = int(s) result = n/cnt print("每人分了", st 阅读全文
posted @ 2019-10-23 16:24 刘_love_田 阅读(266) 评论(0) 推荐(0) 编辑
摘要: pcap安装 抓包与解包 解析pcap文件 https://www.cnblogs.com/guanfuchang/p/6495533.html https://www.cnblogs.com/KevinGeorge/p/8088915.html 阅读全文
posted @ 2019-10-23 12:00 刘_love_田 阅读(13578) 评论(1) 推荐(0) 编辑
摘要: 系统监控模块psutil(第三方模块) psutil是一个跨平台的库,用于在Python中检索系统运行的进程和系统利用率(CPU,内存,磁盘,网络,传感器)的信息。它主要用于系统监控,性能分析,进程管理。分析和限制流程资源以及运行流程的管理。它实现了UNIX命令行工具提供的许多功能,例如:ps,to 阅读全文
posted @ 2019-10-23 11:31 刘_love_田 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 基于python检测端口是否在使用 原理:创建一个socket服务,连接对应的 ip:port ,如果能够连接,说明端口被占用;若端口可用,则不可连接。 https://blog.csdn.net/weixin_33888907/article/details/93054754 git 阅读全文
posted @ 2019-10-19 18:37 刘_love_田 阅读(6143) 评论(0) 推荐(0) 编辑
摘要: 需要先安装两个包 python脚本代码如下 注意:traceroute程序都需要root来运行。traceroute函数可以传入以列表格式的多个域名/IP,和多个端口(这里有80和21)。 阅读全文
posted @ 2019-10-19 15:25 刘_love_田 阅读(935) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/article/82608.htm https://blog.csdn.net/taian1665/article/details/86492400 https://blog.51cto.com/bantu/1982399 https://blog.csdn 阅读全文
posted @ 2019-10-19 10:07 刘_love_田 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 获取设置input标签的值 获取设置textarea标签的值 阅读全文
posted @ 2019-10-18 17:21 刘_love_田 阅读(2327) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/codingnoob/article/details/80879208 阅读全文
posted @ 2019-10-17 21:37 刘_love_田 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Ajax设置自定义请求头的两种方法 阅读全文
posted @ 2019-10-17 11:07 刘_love_田 阅读(2509) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页