改成阿里DNS,依然无效 阿里DNS:223.5.5.5 / 223.6.6.6 判断可能是raw.GitHub的ip又改了 去 一查, 的ip果然改了,现在【2020.4.17】是 。 修改host文件恢复正常 Win: Mac: 文件最后追加(或者修改): ...
分类:
其他好文 时间:
2020-04-17 14:00:38
阅读次数:
171
配置文件分ip和ansible_hosts,生成完成后需手动导入以免报错#!/bin/bashUsage(){echo$"USAGRE:/bin/bash$0"exit1}if["$#"-ne"0"];thenUsagefiCMD="ping-w2-c2"IP="192.168.1."fornin`seq1254`do{$CMD$IP$n&>/dev/nullif[$?-eq0];t
分类:
其他好文 时间:
2020-04-16 18:07:33
阅读次数:
163
RadioButton radio = sender as RadioButton; courseHoursList.Items.SortDescriptions.Clear(); if (radio.Name == "sort_asc") { courseHoursList.Items.SortD ...
分类:
编程语言 时间:
2020-04-16 16:51:16
阅读次数:
86
普通方法:爬取梨视频 import re import time import random import requests from lxml import etree start_time = time.time() url = "https://www.pearvideo.com/catego ...
分类:
编程语言 时间:
2020-04-15 21:26:23
阅读次数:
109
效果图: Python源码(将数据导入数据库): 1 import re 2 import requests 3 import pymysql 4 5 def insertCvpr(value): 6 db = pymysql.connect("localhost", "root", "root", ...
分类:
Web程序 时间:
2020-04-15 14:04:58
阅读次数:
138
远程桌面是微软公司为了便于网络管理员管理维护服务器推出的一项服务。从windows 2000 server版本开始引入,网络管理员时候远程桌面连接器连接到网络任意一台开启了远程桌面控制功能的计算机上,就像是自己操作该计算机一样,运行程序,维护数据库等。远程桌面采用的是一种类似TELNET的技术,它是 ...
分类:
其他好文 时间:
2020-04-14 10:40:38
阅读次数:
63
vjudge题库 A-A 题目–> There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a wo ...
分类:
其他好文 时间:
2020-04-14 09:15:36
阅读次数:
78
# 需求:爬取搜狗首页的页面数据import requestsif __name__ == '__main__': # 1指定url url = 'https://www.sogou.com/' # 2发起请求 res = requests.get(url=url) # get方法会返回一个响应对象 ...
分类:
其他好文 时间:
2020-04-13 16:46:37
阅读次数:
61
方法一(手动取cookie) 临时用一次时,直接将 cookie 复制到 headers 里 方法二(selenium取cookie) 用 selenium 登录,取 cookie 保存,再添加到 requests 中使用 再次用到时,再陆续更新... 方法三(requests取cookie) ...
分类:
其他好文 时间:
2020-04-13 01:14:51
阅读次数:
240
如下图,爬取标题,标题为中文内容,打印出乱码 解决方法,需要对请求后得返回数据重新编码 response = requests.get(url=url2) response.encoding = 'utf-8' #处理编码得步骤 print(url2) wb_data = response.text ...
分类:
其他好文 时间:
2020-04-12 20:37:26
阅读次数:
60