摘要:
依次打开 Tools > Developer(开发者选项) > new Snippet(新的代码块)。可以看到注释的说明: <snippet> <content><![CDATA[ Hello, ${1:this} is a ${2:snippet}. ]]></content> <!-- Opti 阅读全文
摘要:
python 3.4以后StringIO和cStringIO就没有了,转移到 io,的StringIO和BytesIO from io import StringIO fp=StringIO( ) 1.StringIO模块 StringIO用于像文件一样对字符串缓冲区或者叫做内存文件进行读写。 f 阅读全文
摘要:
https://www.postgresql.org/docs/current/static/sql-copy.html 一、Copy的基本语法 Copy的作用是复制数据在数据表和文件之间。 Copy在PostgreSql中的语法是(来自文档): 1、 将文件中的数据复制到表中: COPY tabl 阅读全文
摘要:
1 运行方式一 (proxy-ip) [root@192 ~]# cd /data/test-proxy-ip/ (proxy-ip) [root@192 test-proxy-ip]# scrapy list proxy_ip (proxy-ip) [root@192 test-proxy-ip] 阅读全文
摘要:
from scrapy import Selector >>> doc = """ ... <div> ... <ul> ... <li class="item-0"><a href="link1.html">first item</a></li> ... <li class="item-1"><a 阅读全文
摘要:
google的驱动:chromedriver.exe 驱动版本与chrome版本对应的目录: http://npm.taobao.org/mirrors/chromedriver/2.32/notes.txt http://npm.taobao.org/mirrors/chromedriver/2. 阅读全文
摘要:
python内置函数,传入列表,返回索引值与列表元素 for index, item in enumerate(list1): print index, item 阅读全文
摘要:
1. 作用:向 SQL Server 实用工具发出一批 Transact-SQL 语句结束的信号.2. 语法:一批 Transact-SQL 语句GO如Select 1Select 2Select 3GO3. 说明:1) GO 不是 Transact-SQL 语句;2) 它是 sqlcmd 和 os 阅读全文
摘要:
pip freeze可以查看已经安装的python软件包和版本 pip list 也可以 阅读全文