原创 MAC添加環境變量
把要添加的path寫入文件/etc/paths
原创 虛擬環境安裝python
準備1:虛擬機virtualbox 準備2:centos鏡像 步驟1:在virtual中安裝centos,https://blog.csdn.net/elie_yang/article/details/81369136 步驟2:安裝pyt
原创 tensorflow1.x和tensorflow2.x的安裝
pip2.7 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.14.0 pip install -i https://pypi.tuna.tsingh
原创 怎麼在submit text中特殊字符換行
1.複製內容到submit text; 2.ctrl+h,alt+r,開啓正則; 3.之後&被\n替換,replaceall
原创 navicat 試用結束
方案1: 1,關閉Navicat; 2,Win + R,輸入regedit回車; 3,刪除HKEY_CURRENT_USER\Software\PremiumSoft\Data; 4,展開HKEY_CURRENT_USER\Softwar
原创 pycharm快捷鍵的一些使用
https://www.cnblogs.com/polly-ling/p/9617519.html
原创 virtualenv怎麼區分python2和python3
使用python2的virtualenv: virtualenv -p /usr/bin/python2.7 env2.7 使用python3的virtualenv: virtualenv -p /usr/bin/python3.7 en
原创 windows環境print python程序報編碼錯誤
代碼開頭加上: import io import sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030')
原创 把報錯信息寫入日誌
import logging import traceback logging.basicConfig(filename, level, filemode='w', format, datefmt) try: # 問題代碼 exc
原创 mac 剪切
先複製:command+c 再剪切:option+command+v
原创 python3 adb Permission denied
python3 adb Permission denied chmod +x /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/a
原创 MAC error: command 'gcc' failed with exit status 1
主要的報錯信息是這個: ld: library not found for -lssl gcc找不到這個庫 我們使用以下便可解決 export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/opens
原创 Mac下Chrome添加.crx瀏覽器插件
第一步:unzip Charset.zip -d Charset #解壓Charset.zip文件到Charset文件夾 第二部:拖到谷歌瀏覽器的擴展應用裏面
原创 error: Your local changes to the following files would be overwritten by merge
場景:假如你沒有git pull就直接開始改代碼了,但是github上的代碼發生了變動,當你提交的時候就會出現這中錯誤 解決: git stash //暫存當前正在進行的工作。 git pull origin master
原创 mac上docker搭建單機kafka
1.自行百度在mac上安裝docker 2.拉取kafka:docker pull wurstmeister/zookeeper 3.拉取zookeeper:docker pull wurstmeister/kafka 4.運行zooke