原创 python打包wheel文件

1.創建功能性函數 pytest.py def test(): print('print test') 2.創建setup.py文件 from setuptools import setup setup( na

原创 反饋系統簡單設計

反饋系統 源碼和部署說明參見 Talk 項目gunicorn+nginx配置啓動 部署地址:api.imibi.cn E-R模型 USER角色:普通用戶/專業人員/管理員 專業人員/根據type(區域或問題類型)查看對應分配

原创 獲取Let's Encrypt免費證書

Ubuntu 16.04 上獲取Let’s Encrypt免費證書 雲服務商:阿里雲 服務器:針對Nginx服務器; 假設域名:example.com www.example.com 假設IP:137.137.137.137 域名

原创 PYTHON設置環境變量

path 環境變量 作用是指定路徑搜索路徑 , 類比Java的PATH import sys for p in sys.path: print(p) #查看path列表 sys.path.append('/Users/

原创 python 常見面試題

1. 裝飾器(給函數增加功能) # 多個裝飾器的裝飾過程就是:離函數最近的裝飾器先裝飾,然後外面的裝飾器再進行裝飾,由內到外的裝飾過程 ​ def test_a(func): def test_b(): re

原创 modbus tcp

技術源於生活,服務生活 demo.py # demo:modbus_tcp應答機制 import modbus_tk.defines as md import modbus_tk.modbus_tcp as mt from x

原创 CSS Grid網格佈局淺嘗

技術源於生活,服務生活 地址:api.imibi.cn:8080 簡單的Grid .container-r-btm { display: grid; /* grid-template-colum

原创 python參數啓動

技術源於生活,服務生活 demo.py import sys # 傳入3個參數,具體操作根據個人情況 def main(argv): print(argv) print(argv[1]) print

原创 ubuntu MySQL 卸載重裝

首先刪除mysql: sudo apt purge mysql-server mysql-client mysql-common sudo apt autoremove sudo mv -iv /var/lib/mysql /

原创 Ubuntu MySQL密碼重置

Step1:修改mysqld.cnf配置文件 在ubuntu的terminal(也即終端)上輸入sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf,進入到這個配置文件,文末加入skip-gr