聯絡我 : x831617@gmail.com
臉書粉專 : 葛瑞斯肯樂活筆記
undefined

unicodedata 這個套件是取用 Unicode Character Database,專用來描述unicode字符的屬性,可以用來找尋一些符號,沒有符號的話會出現 keyError。

以下會介紹四個function:

  1. lookup: 用unicode描述找字元

  2. name: 用字元查unicode描述

  3. decimal: 用字元反查unicode描述的值

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

如標題,由於常用到pip然後掛proxy,特地記錄一下:

pip install --proxy=ip:8080 package_name


pip install package_name --proxy=ip:8080


葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

以下紀錄 GIT 修改密碼後,PyCharm 對於 GIT 修改密碼的方式。由於使用PyCharm開發時也會連結到版本控制的系統,這邊我連到的系統是 Gitlab

作業系統: Windows 10

然後我改了 Gitlab 的密碼導致 PyCharm push 時會出現下述錯誤:

Update failed


remote: HTTP Basic: Access denied

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

實作mnist資料集時有遇到下述的錯誤訊息:

Please use alternatives such as official/mnist/dataset.py from tensorflow/models.


葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

紀錄

TypeError: 'xxx' object is not callable

該錯誤訊息,這是代表呼叫到了一個無法呼叫的物件,我遇到該錯誤是因為我寫錯了下述程式:

產生錯誤的程式:

cost_function = tf.reduce_mean(tf.square(y-y_points))

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

下述紀錄如何使用PyCharm 安裝套件, 像是 matplotlib 套件

步驟一: 點擊”File” => “Settings”

步驟二: 找到Project => 點”Project Interpreter”,並且選擇右邊的綠色”+”

步驟三: 在搜尋框輸入要安裝的套件名稱 (需要知道套件名稱),然後點”Install Package”就可以安裝了。

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

以下紀錄要怎麼去修改 Redis 相關的設定,請打開 Redis 資料夾中的 redis.windows.conf,推薦使用 Notepad++ 來開啟:

1. 設定密碼

把 # requirepass foobared 的#拿掉,並且foobared改成自己想要的密碼,之後記得去CMD模式重新開啟Redis服務:

Redis-server redis.windows.conf


葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

以下紀錄 PyCharm 在 console 自動斷行的設計方式:

第一種,直接在功能表選取”View”,再選”Active Editor”,裡面的”Use Soft Wraps”就是讓 console自動斷行。

第二種則是在console視窗,旁邊就有一個自動斷行的快捷按鈕,點下去就會自動斷行。

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

Python 的測試入口 if __name__ == “__main__”

如同Java的測試入口 main function一般:

public static void main(String args[]){


}


葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

以下紀錄如何使用 Python 安裝 Redis 與使用 Redis,使用的IDE是PyCharm

Step 1: 先去https://github.com/MicrosoftArchive/redis/releases 來抓 Redis:

Step 2: 將抓下來的檔案解壓縮,解壓縮後,到該資料夾並且進到CMD模式:

輸入下列指令:

redis-server.exe redis.windows.conf

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

以下紀錄如何使用 PyCharm 設定 Proxy:

Step 1: 打開 PyCharm 後,點擊”File” -> “Settings”

Step 2: 點擊”Appearance & Behavior” -> “System Settings” -> HTTP Proxy就可以看到設定的地方,Host name 只需要輸入IP即可或者URL,不用輸入 http or https

Apply後就生效了。

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

undefined

下述紀錄使用PyChamr整合Tortoise GIT,這個步驟需要先行安裝:

  1. GIT (https://git-scm.com/)
  2. PyCharm (https://www.jetbrains.com/pycharm-edu/download/)

葛瑞斯肯 發表在 痞客邦 留言(0) 人氣()

« 1 2 3 4 5
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。