代码 # for循环 for i in range(1,10): for j in range(1,i+1): print('{}*{}={}\t'.format(i,j,i*j),end = ' ') print('\n') for i in range(1,10): for j in range ...
分类:
其他好文 时间:
2020-04-25 16:59:36
阅读次数:
80
操作助手 Using System.Data.SQLite SQLiteConnection m_dbConnection; public SQLiteHelper() { //路径为同项目的sqlite文件夹下的db文件 string connectionstr = string.Format(@ ...
分类:
数据库 时间:
2020-04-25 11:01:11
阅读次数:
112
服务器上php脚本执行curl一直 报错超时 换了其他服务器,就可以用。 折腾了个把小时,最终采用另一台服务器作为中转,完美解决。 a服务器发出curl 访问 c服务器绑定的的域名c.com,报错c.com:80; Connection timed out 同样的代码lnmp环境,b服务器发出cur ...
分类:
Web程序 时间:
2020-04-25 01:18:37
阅读次数:
239
# coding:utf-8 import hashlib import datetime import lxml import pymysql import requests from lxml import etree import sys reload(sys) sys.setdefaulte ...
分类:
其他好文 时间:
2020-04-24 21:40:14
阅读次数:
451
说明:无意滋生事端,仅学习分享,如有侵权,立即删除 用到的模块:json、lxml的etree、time.ctime、requests 源码如下: import requests import time from lxml import etree import json class BiLiSpi ...
分类:
其他好文 时间:
2020-04-24 21:28:50
阅读次数:
145
Server端: #include <iostream> #include <WinSock2.h> #pragma comment(lib, "ws2_32.lib") int main() { // 初始化Winsock 2.2 WSADATA wsaData; if (WSAStartup(M ...
报错:IDEA failed connect to github.com port 44.: Timed out执行:git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy http:/ ...
分类:
其他好文 时间:
2020-04-24 14:32:06
阅读次数:
181
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 一、问题描述 *************************** ...
分类:
Web程序 时间:
2020-04-24 10:28:16
阅读次数:
97
spider文件 继承RedisCrawlSpider,实现全站爬取数据 import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from h ...
分类:
数据库 时间:
2020-04-24 09:16:11
阅读次数:
141
HTTP 全称是 HyperText Transfer Protocal 即超文本传输协议。Http是一种基于TCP/IP协议的一种传输协议。我们知道OSI模型把网络通信的工作分为7层,分别是:是物理层、数据链路层、网路层、传输层、话路层、表示层和应用层。而Http协议是应用层协议。
分类:
移动开发 时间:
2020-04-24 01:42:42
阅读次数:
126