上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: ``` num=${num//[[:blank:]]/} ``` 阅读全文
posted @ 2018-09-06 15:03 idlewith 阅读(83) 评论(0) 推荐(0) 编辑
摘要: ``` 1- ajax 2- move operation of logic move to javascript 3- rename django.fcgi to dispatch.fcgi 4- optimize sql 5- reduce the size of html * inline css * * remove '\n' 6- compress html ... 阅读全文
posted @ 2018-09-04 15:27 idlewith 阅读(82) 评论(0) 推荐(0) 编辑
摘要: ``` import requests import shutil url_png = "http://...png" path_image = "/usr/local/001" resp = requests.get(url, stream=True) with open(path_image, 'wb') as f: shutil.copyfileobj(resp.r... 阅读全文
posted @ 2018-08-30 18:26 idlewith 阅读(115) 评论(0) 推荐(0) 编辑
摘要: ``` jupyter nbconvert --to script --execute --stdout test_nbconvert.ipynb | python ``` 阅读全文
posted @ 2018-08-29 18:38 idlewith 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ``` #!/usr/bin/python # coding: utf-8 import re from collections import Counter import requests import time from bs4 import BeautifulSoup def count_zero(text): zero = dict(Counter(text)).get('0... 阅读全文
posted @ 2018-08-28 15:24 idlewith 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 yum y install epel release 2 yum y install python pip 3 pip install shadowsocks 4 mkdir /etc/shadowsocks 5 vim /etc/shadowsocks/shadowsocks.json 6 v 阅读全文
posted @ 2018-08-27 17:39 idlewith 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ``` HKEY_CURRENT_USER\Software\Python\PythonCore\2.7\InstallPath default: D:\Python\ ExecutablePath: D:\Python\python.exe WindowedExecutablePath: D:\Python\pythonw.exe HKEY_CURRENT_USER\S... 阅读全文
posted @ 2018-08-22 17:15 idlewith 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ``` import tkinter import time class Reminder: def __init__(self, text): self.root = tkinter.Tk() self.root.overrideredirect(True) self.root.geometry('{0}x{1}+0+0'.format... 阅读全文
posted @ 2018-08-20 11:07 idlewith 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ``` =MOD(row(), 2) = 0 ``` 阅读全文
posted @ 2018-08-15 16:52 idlewith 阅读(78) 评论(0) 推荐(0) 编辑
摘要: inspection careful examination or scrutiny. examination a detailed inspection or study. scrutiny critical observation or examination. 阅读全文
posted @ 2018-08-15 16:30 idlewith 阅读(97) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页