摘要:
```
num=${num//[[:blank:]]/}
``` 阅读全文
摘要:
``` 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 ... 阅读全文
摘要:
``` 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... 阅读全文
摘要:
```
jupyter nbconvert --to script --execute --stdout test_nbconvert.ipynb | python
``` 阅读全文
摘要:
```
#!/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... 阅读全文
摘要:
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 阅读全文
摘要:
```
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... 阅读全文
摘要:
```
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... 阅读全文