原创 解決GitHub 訪問慢解決
在本地host文件中添加映射,步驟如下: 用文本編輯器打開hosts文件,位於C:\Windows\System32\drivers\etc目錄下 打開 http://tool.chinaz.com/dns ,這是一個查詢域名映
原创 ubuntu18.04使用Anaconda3-2019.03-Linux-x86_64自帶python3.7搭建Pycharm2019.1.3工作環境
1. 把默認python改爲anaconda自帶python3.7 註冊表更改: vim ~/.bashrc export PATH=/home/XXX/anaconda3/bin:$PATH source ~/.bashrc anaco
原创 Pycharm import keras 錯誤
import os os.environ['KERAS_BACKEND']='tensorflow' 若遇到導入tensorflow 錯誤: pychram配置tensorflow: 在edit configuration的 Enviro
原创 反盜鏈基礎
import requests user_agent = 'Mozilla/4.0(Compatible; MSIE5.5; Windows NT)' headers = {'User-Agnet':user_agent} r = re
原创 文本分類例子 下載 nltk 包方法
import nltk import ssl try: _create_unverified_https_context = ssl._create_unverified_context except AttributeErr
原创 mac客戶端打開csv表格方法
cat file.csv | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S
原创 git發佈到遠程分支
echo "# 1" >> README.md git init git add README.md Reinitialized existing Git repository in /目錄/.git/ git commit
原创 csv, txt, json 寫文件 python3環境
遍歷子目錄獲取文件 import os for dir, dirs, files in (os.walk) print(os.path.join(dir, dirs, files)) 1. Json imp
原创 mysql 和mongodb的配置文件在哪裏? iOS mac環境
vi /usr/local/etc/my.cnf brew services restart mysql On Linux, a default /etc/mongod.conf configuration file is in
原创 mongodb沒有正確關機導致損壞的修復
Ubuntu18.04沒有正確關機 sudo service mongod status 出現 ● mongod.service - MongoDB Database Server Loaded: loaded (/lib/sys
原创 mysql 刪除數據庫 顯示大小
清空數據庫 mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; do
原创 plotly 看哪些字體
fc-list :lang=zh family.
原创 jupyter notebook改深色主體
from jupyterthemes import get_themes import jupyterthemes as jt from jupyterthemes.stylefx import set_nb_theme set_
原创 mac,ubuntu 環境變量
Mac OS X Open the .bash_profile file in your home directory (for example, /Users/your-user-name/.bash_profile) in a tex