每月彙整:六月 2023

Python: json load Python List

import json #json dumps to List books =[ { 'username':"張三", 'age':18, 'country':'china' }, { 'username':"李四", 'age':21, 'country':'Taiwan' } ] json_Str = json.dumps(books) print("json_格式: " + str(type(json_Str))) print(json_Str) #json dump to file.json # encoding=’utf-8′ and ensure_ascii=False with open(‘test_json.json’,’w+’,encoding=’utf-8′) as fp: #fp.write(json_Str) … 繼續閱讀 →

發表於 python | 發表迴響

Win10無法存取共用資料夾解決方法 

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanWorkstation \ Parameters\AllowInsecureGuestAuth 0 改為 1

發表於 windows | 發表迴響

intel 等寬字型

https://github.com/intel/intel-one-mono

發表於 未分類 | 發表迴響

pve 重新尋找網卡代號

1. ls /sys/class/net -al 確認網卡代號 2. vi /etc/netowrk/interface 修改改有關 enp代號 2處 3. if up enpx systemctl restart networking

發表於 proxmox | 發表迴響

autocad 遮蔽

docs.autodesk.com help.autodesk.com genuine-software2.autodesk.com

發表於 未分類 | 發表迴響

Fixing “Failed to Load Module Canberra-GTK-Module” Error

#debian sudo apt update sudo apt install libcanberra-gtk-module libcanberra-gtk3-module -y #redhat sudo dnf makecache sudo dnf -y install libcanberra-gtk3 # Arch-based Linux distros sudo pacman -Sy libcanberra

發表於 未分類 | 已標籤 | 發表迴響

python-pandas无法打开.xlsx文件,xlrd.biffh.XLRDError: Excel xlsx file; not supported

原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。 可以安装旧版xlrd,在cmd中运行: pip uninstall xlrd pip install xlrd==1.2.0 也可以用openpyxl代替xlrd打开.xlsx文件: df=pandas.read_excel(‘data.xlsx’,engine=‘openpyxl’)

發表於 python | 發表迴響