原创 python編碼錯誤處理
問題一: python轉換unicode編碼,如b'\xcf\xb5\xcd\xb3\r\n ’轉換中文 同時解決UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in po
原创 Python zip()函數使用及常見報錯處理
zip用法 zip即將多個可迭代對象組合爲一個可迭代的對象,每次組合時都取出對應順序的對象元素組合爲元組,直到最少的對象中元素全部被組合,剩餘的其他對象中未被組合的元素將被捨棄。 keys = ['one', 'two', 'thre
原创 Python startswith()如何判斷字符串開頭爲空; split('\n')
想什麼呢!爲空的字符串爲什麼要判斷第一個字符! 真實越學越傻。。。應該先判斷是否爲空呀! # 判斷一個字符串不空且不以#開頭 if str: if not str.startswith('#'): print(s
原创 Python:ufunc ‘subtract‘ did not contain a loop with signature matching types dtype(‘「U32‘)
python報錯ufunc 'subtract' did not contain a loop with signature matching types dtype('<U32') dtype('<U32') dtype('<U32')
原创 解決python ImportError: Failed to import any qt binding
問題:如題。 解決方法: 1. 重新安裝,或降低版本matplotlib #重新安裝 python -m pip uninstall matplotlib python -m pip install --upgrade pip pyth
原创 python轉換unicode編碼,如b'\xcf\xb5\xcd\xb3\r\n ’轉換中文
如題,同時解決UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 4: invalid continuation byte問題。 b = b'\xcf
原创 關於python pickle模塊用法與常見報錯
pickle模塊用法 轉自https://www.cnblogs.com/lincappu/p/8296078.html 用於序列化的兩個模塊 json:用於字符串和Python數據類型間進行轉換 pickle: 用於pyth
原创 win10安裝配置anaconda+mingw+theano+keras及報錯處理
1. 卸載原有python 否則可能會遇到各種奇奇怪怪的問題,比如conda install mingw libpython時報錯“TypeError: LoadLibrary() argument 1 must be str
原创 Java容器類List、ArrayList、Vector及map、HashTable、HashMap的區別與用法
http://wujay.iteye.com/blog/1673675 http://www.blogjava.net/baizhihui19870626/articles/388061.html http://www.andcoder.
原创 JAVA之編碼/解碼 -- 各種環境下可能會發生的亂碼問題及解決方案
java讀的文件中中文字符一直有錯,後來把java的Run Configuration對話框的Common標籤裏,設置爲GBK,然後就好了 問題一:在java中讀取文件時應該採用什麼編碼? Java讀取文件的方式總體可以分爲兩類
原创 HTTP頭域字段
HTTP(HyperTextTransferProtocol)是超文本傳輸協議的縮寫,它用於傳送WWW方式的數據,關於HTTP協議的詳細內容請參考RFC2616。HTTP協議採用了請求/響應模型。客戶端向服務器發送一個請求,請求頭包含請
原创 edas提交論文因字體沒有內嵌(fonts are not embedded)被拒接提交
上傳Camera-Ready版本的時候,遇到EDAS阻止提交,提示一些字體未嵌入。 Publishers require that PDF font are embedded so that documents can be pri
原创 什麼是java序列化,如何實現java序列化?
轉載地址:http://blog.csdn.net/yakihappy/article/details/3979373 Java 串行化技術可以使你將一個對象的狀態寫入一個Byte 流裏,並且可以從其它地方把該Byte 流裏的數據讀出來
原创 mysql更改了數據庫存儲路徑後,出現錯誤1067 進程意外終止
以前機子上裝了64位的mysql,後卸載後清除了註冊表,安裝了32位的mysql。 默認的數據庫存儲路徑是C:\ProgramData\MySQL\MySQL Server 5.5\data, 我在my.
原创 JAVA中SERIALVERSIONUID
serialVersionUID作用: 序列化時爲了保持版本的兼容性,即在版本升級時反序列化仍保持對象的唯一性。有兩種生成方式: 一個是默認的1L,比如:private static final long ser