1, 最基本的弹出窗口代码 window.open('page.html'); 2, 经过设置后的弹出窗口 window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar ...
from lxml import etree import codecs import sys from lxml import etree def parser(p): tree = etree.HTML(open(str(p)+'.html', 'r').read()) nodes = tree... ...
分类:
编程语言 时间:
2018-06-20 18:46:05
阅读次数:
128
from urllib import request from time import sleep from lxml import etree import csv # import random #sleep(random.random(1)*2) 随机秒数 # 参数部分 # sz_url = ... ...
分类:
其他好文 时间:
2018-06-20 14:33:12
阅读次数:
194
import requests import re #正则表达式库导入倒推部分下载文件的代码url='http://zhangmenshiting.qianqian.com/data2/music/6c03fa42a322f8ad3c78eebe9f2b4211/594781778/59478177 ...
分类:
其他好文 时间:
2018-06-20 14:30:25
阅读次数:
157
1. ngx_command_t 为了统一配置项目的解析,Nginx 定义了如下数据类型对所有的 Nginx 配置项进行了统一的描述。 2. ngx_conf_t ngx_open_file_s ngx_conf_file_t ngx_conf_dump_t 3. ngx_conf_parse 该函 ...
分类:
其他好文 时间:
2018-06-20 00:52:50
阅读次数:
337
知识点:母函数(其实更建议去看《组合数学》),五边形数定理(百度总结的也不错)。 #include<bits/stdc++.h> #define ll long long #define P pair<int,int> #define pb push_back #define lson root < ...
分类:
其他好文 时间:
2018-06-20 00:49:46
阅读次数:
192
Hadoop伪分布模式配置部署 一、实验介绍 Hadoop伪分布模式配置部署 一、实验介绍 1.1 实验内容 hadoop配置文件介绍及修改 hdfs格式化 启动hadoop进程,验证安装 1.2 实验知识点 hadoop核心配置文件 文件系统的格式化 测试WordCount程序 1.3 实验环境 ...
分类:
其他好文 时间:
2018-06-20 00:09:35
阅读次数:
244
一、lseek函数 每个打开文件都有一个与其相关联的“当前文件偏移量”。它通常是一个非负整数,用以度量从文件开始处 计算的字节数。通常,读、写操作都从当前文件偏移量处开始,并使偏移量增加所读写的字节数。当打开一个文 件时,除非指定O_APPEND选项(调用open函数时使用了O_APPEND),否则 ...
分类:
系统相关 时间:
2018-06-20 00:08:04
阅读次数:
231
被老师要求,已经是不得不进行图形界面的开发了,因为程序本体使用python写的,所以自然第一次进行图形界面开发就选择了wxpython,wxpython是一款非常优秀的GUI图形库,写起来也相对简洁方便。 安装时直接pip install wxpython即可。 demo程序以及其它官方相关文件下载 ...
分类:
移动开发 时间:
2018-06-20 00:05:02
阅读次数:
287
shutil.copyfileobj(fsrc, fdst[, length]) #将文件内容拷贝到另一个文件中 import shutil shutil.copyfileobj(open('old.xml','r'), open('new.xml', 'w')) shutil.copyfile(s ...
分类:
其他好文 时间:
2018-06-19 21:33:22
阅读次数:
196