这个控制多台机器的思路值得学习 # -*- coding: utf-8 -*- import optparse import pxssh class Client: def __init__(self,host,password,username): self.host = host self.pa ...
分类:
编程语言 时间:
2020-07-05 23:22:42
阅读次数:
127
本节目录 常用函数一:词频统计 常用函数二:word2vec 常用函数三:doc2vec 常用函数四:LDA主题分析 常用函数一:词频统计 # -*- coding: utf-8 -*- """ Datetime: 2020/06/25 Author: Zhang Yafei Description ...
分类:
编程语言 时间:
2020-07-05 22:59:55
阅读次数:
75
主函数 进入关键函数judge,IDA出错 应该是主函数中对judge函数异或导致的,可以写脚本还原函数 python脚本(后缀名要改为.py): #coding=utf-8 judge=0x600B00 for i in range(182): addr=0x600B00+i byte=get_b ...
分类:
其他好文 时间:
2020-07-05 22:50:35
阅读次数:
109
常用函数二:文本分词 方式一:jieba分词+停用词+自定义词典 # -*- coding: utf-8 -*- """ Datetime: 2020/06/25 Author: Zhang Yafei Description: 文本分词 输入 停用词文件路径 词典文件路径 分词文件路径 表名(可选 ...
分类:
编程语言 时间:
2020-07-05 21:25:01
阅读次数:
46
python脚本模板 1 设置路径:search --> file and code templates 2 样例 #!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : ${USER} # @ ...
分类:
其他好文 时间:
2020-07-05 19:41:35
阅读次数:
54
python简介 1、python是一种解释性语言,不需要编译,类似于php 2、Python是交互式语言,可以直接执行python进入交互页面 3、面向对象编程 如果输出有中文需要指定编码 # -*- coding: UTF-8 -*- 如何运行python 第一行代码#!/usr/bin/env ...
分类:
编程语言 时间:
2020-07-05 19:40:24
阅读次数:
79
1 # -*- coding: utf-8 -*- 2 import arcpy 3 4 arcpy.env.workspace = "F:\ArcpyBook\Ch8\WildfireData\WildlandFires.mdb" #S设置工作空间,这里是shp所在的位置 5 6 f = open ...
分类:
其他好文 时间:
2020-07-05 17:15:34
阅读次数:
104
# -*- coding: utf-8 -*- import numpy; import matplotlib; from pandas import read_csv; from matplotlib import pyplot as plt; font = { 'family' : 'SimHe ...
分类:
其他好文 时间:
2020-07-04 22:47:45
阅读次数:
103
一.python #!/usr/bin/env python # coding=utf-8 from collections import OrderedDict def meminfo(): '''Return the information in /proc/meminfo as a dicti ...
分类:
其他好文 时间:
2020-07-04 19:04:25
阅读次数:
85
登陆的方式 1.实例化session,使用session发送post请求,在使用它获取登陆后的页面 # coding=utf-8 import requests session = requests.session() post_url = "http://www.renren.com/PLogin ...
分类:
其他好文 时间:
2020-07-04 18:48:00
阅读次数:
68