• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Blood_Zero
从新开始!从心开始!
   首页    新随笔       管理     

随笔分类 -  Python

python去重(针对密码)

摘要:#coding:utf-8#author:Blood_Zeroimport retmp_list=[]f=open("E:/ASP.txt","r")f1=f.readlines()for i in f1: rule=re.compile('\W') i=re.sub(rule,'',i... 阅读全文
posted @ 2015-08-01 11:29 BloodZero 阅读(449) 评论(0) 推荐(0)
Python 爬虫学习

摘要:#coding:utf-8#author:Blood_Zero''' 1、获取网页信息 2、解决编码问题,通过charset库(默认不安装这个库文件)'''import urllibimport urllib2url = "http://192.168.1.135/myself/"htm... 阅读全文
posted @ 2015-07-15 17:04 BloodZero 阅读(350) 评论(0) 推荐(0)
python端口扫描

摘要:简易版:#author:Blood_Zero#coding:utf-8import socketimport sysPortList=[21,22,23,25,80,135]#host=sys.argv[1]for i in PortList: sock=socket.socket() ... 阅读全文
posted @ 2015-04-21 22:25 BloodZero 阅读(409) 评论(0) 推荐(0)
python模块-platform

摘要:#author:Blood_Zero#coding:utf-8import platformprint dir(platform) #获取platform函数功能platform.architecture() #获取系统架构platform.system() # 获取操作系统类型platfor... 阅读全文
posted @ 2015-04-20 20:47 BloodZero 阅读(244) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3