Python例题

1.生成一个大文件ips.txt,要求120000行,每行随机为172.25.254.0/24段的ip
2.读取ips.txt文件统计这个文件中ip出现频率排前10的ip
这里写图片描述
这里写图片描述
这里写图片描述
2.给固定的群组发消息
import itchat
import time
itchat.auto_login(hotReload)=True
res=itchat.search_chatrooms(‘小兔崽子们’)
zaizi=res[0][‘GroupName’]
itchat.send(‘hello’,toGroupName=zaizi)

猜你喜欢

转载自blog.csdn.net/qq_42725815/article/details/81988815