摘要: 如何恢复或重置FreeBSD & Linux的root密码(重置CentOS7密码) 阅读全文
posted @ 2017-08-31 17:05 压力山大80 阅读(118) 评论(0) 推荐(0) 编辑
摘要: >>> a = u"中文" >>> print(a) 中文 >>> a_utf_8 = a.encode("utf-8") >>> print(a_utf_8.decode("utf-8")) 中文 >>> a_gb2312 = a.encode('gb2312') >>> print(a_gb23 阅读全文
posted @ 2017-08-28 17:08 压力山大80 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Beautiful Soup 4.4.0 文档 阅读全文
posted @ 2017-08-28 14:03 压力山大80 阅读(84) 评论(0) 推荐(0) 编辑
摘要: http://chromedriver.storage.googleapis.com/index.html 阅读全文
posted @ 2017-08-16 22:50 压力山大80 阅读(114) 评论(0) 推荐(0) 编辑
摘要: import re import requests # 基础url url = "http://192.168.200.180" # 登录url loginurl = url + "/redmine/login" # 通过登录页面获取登录需要的Cookie rs = requests.get(loginurl) print(rs.headers['Set-Cookie']) pagesourc... 阅读全文
posted @ 2017-07-25 17:49 压力山大80 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 状态 状态码 状态值 状态描述 成功 200 OK 正常 成功 201 Created 已建立 成功 202 Accepted 已接受 成功 203 Non-Authoritative Information 无认证信息 成功 204 No Content 无内容 成功 205 Reset Cont 阅读全文
posted @ 2017-07-07 16:12 压力山大80 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #conding:utf-8 import unittest from selenium import webdriver from urllib.request import * import re import time from bs4 import BeautifulSoup #测试类 class baidupic(unittest.TestCase): #初始化测试 ... 阅读全文
posted @ 2017-06-29 18:15 压力山大80 阅读(191) 评论(0) 推荐(0) 编辑