crac

导航

上一页 1 2 3 4 5 6 ··· 9 下一页

2018年8月31日 #

yarn安装及node升级

摘要: ERROR: apt-get install npm 建议先装n,再用n把node升级到最新稳定版$ npm install -g n $ n stable npm install -g cordova@4 也可以指定版本 n 6.9.1 需要重启,重启后: npm install -g yarn 阅读全文

posted @ 2018-08-31 00:21 crac 阅读(7211) 评论(0) 推荐(0) 编辑

2018年8月30日 #

sys.stdout.flush-倒计时

摘要: 1. 2. 阅读全文

posted @ 2018-08-30 15:59 crac 阅读(221) 评论(0) 推荐(0) 编辑

2018年8月27日 #

wget 网站扒取

摘要: wget --mirror --page-requisites --adjust-extension --no-parent --convert-links http://target.com 阅读全文

posted @ 2018-08-27 17:36 crac 阅读(133) 评论(0) 推荐(0) 编辑

2018年8月2日 #

低碳生活

该文被密码保护。 阅读全文

posted @ 2018-08-02 00:51 crac 阅读(1) 评论(0) 推荐(0) 编辑

2018年7月19日 #

万能英数脚本

摘要: #coding:utf8 import requests import Image import cStringIO import imghdr import urllib2 import ssl import urllib import sys import json import time reload(sys) sys.setdefaultencoding( "utf-8" ) ssl._... 阅读全文

posted @ 2018-07-19 23:07 crac 阅读(310) 评论(0) 推荐(0) 编辑

sample function

摘要: #coding:utf8 import requests import json import ssl import datetime import urllib import sys import json import time import random reload(sys) sys.setdefaultencoding( "utf-8" ) ssl._create_default_ht... 阅读全文

posted @ 2018-07-19 23:06 crac 阅读(284) 评论(0) 推荐(0) 编辑

2018年6月26日 #

get_time

摘要: def get_current_time(): #将python的datetime转换为unix时间戳 dtime = datetime.datetime.now() un_time = time.mktime(dtime.timetuple()) #print un_time #1509636609.0 #将unix时间戳转换为python 的dat... 阅读全文

posted @ 2018-06-26 20:36 crac 阅读(108) 评论(0) 推荐(0) 编辑

2018年6月12日 #

request设置cookies

摘要: mycookie = { "PHPSESSID":"56v9clgo1kdfo3q5q8ck0aaaaa" } request.get(url,cookies = mycookie) ) 阅读全文

posted @ 2018-06-12 14:56 crac 阅读(241) 评论(0) 推荐(0) 编辑

读取指定行

摘要: import linecache the_line = linecache.getline('d:/test.txt', 1) 阅读全文

posted @ 2018-06-12 14:56 crac 阅读(94) 评论(0) 推荐(0) 编辑

2018年6月10日 #

resize2fs

摘要: VPS是15G的。。但是dh和fdisk显示不一样。。求解 df:Filesystem Size Used Avail Use% Mounted onudev 236M 0 236M 0% /devtmpfs 50M 2.7M 47M 6% /run/dev/vda1 3.4G 845M 2.5G 阅读全文

posted @ 2018-06-10 12:42 crac 阅读(200) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页