作者查詢 / stucode

總覽項目: 發文 | 留言 | 暱稱
作者 stucode 在 PTT [ Python ] 看板的留言(推文), 共230則
限定看板:Python
[問題] pyautogui安裝失敗
[ Python ]12 留言, 推噓總分: +2
作者: oiulkj - 發表於 2019/01/09 13:56(7年前)
8Fstucode: 這個似乎是最近版本中底層相依的 pygetwindow 的問題,01/09 22:23
9Fstucode: 目前暫時的解決方式是先裝回 0.9.39 版。01/09 22:23
[問題] 如何將tkinter所設定的資料輸出消失
[ Python ]4 留言, 推噓總分: +1
作者: st40182 - 發表於 2018/11/05 16:53(7年前)
1Fstucode: 取值的話 StringVar 有 get() 方法。至於傳給其他 py 載11/05 23:40
2Fstucode: 入的方式就很多了,命令列參數、寫檔讀檔及各種 IPC,用11/05 23:41
3Fstucode: 哪種取決於你的需求。11/05 23:41
[問題]搜尋缺值 往前補齊
[ Python ]18 留言, 推噓總分: +5
作者: Angesi - 發表於 2018/10/09 14:39(7年前)
11Fstucode: 樓上,原 PO 意思是數字本身往前遞補但位置不變。例如:10/12 19:09
12Fstucode: [4, 5, 1, 2](缺3),遞補完會是 [3, 4, 1, 2], 不是10/12 19:09
13Fstucode: [1, 2, 3, 4],所以不能直接產生 1..size 的序列當結果。10/12 19:09
14Fstucode: 不過原 PO 的描述其實我一開始也沒看懂。10/12 19:09
15Fstucode: 話說回來,這個問題也可以直接做一次排序後線性掃描即可10/12 19:10
[問題] 撈取SQLite資料筆數問題
[ Python ]7 留言, 推噓總分: +3
作者: alansyue - 發表於 2018/10/01 14:51(7年前)
4Fstucode: 問號旁邊不用加單引號。加了 SQLite 會認為你表達的是10/02 00:40
5Fstucode: 字面上的問號,而不是 placeholder。10/02 00:40
Re: [問題] 新手list問題請教消失
[ Python ]7 留言, 推噓總分: +1
作者: jasonislin - 發表於 2018/09/28 04:01(7年前)
1Fstucode: 預設參數的用法是錯的喔。09/28 21:17
3Fstucode: output=[] 的部分,這樣寫的話每次 output 都會指向同一09/29 10:44
4Fstucode: 物件,導致每次函數結果會串接在一起。如果不知道在說什09/29 10:44
5Fstucode: 麼的話,多跑幾次 increment() 看看結果應該就知道了。09/29 10:44
6Fstucode: 傳統的作法是,參數預設 output=None,然後在函數裡檢查09/29 10:45
7Fstucode: if output is None: output = []09/29 10:45
[問題] re 中$ re.MULTILINE 和 \n 會有陷阱嗎?
[ Python ]2 留言, 推噓總分: 0
作者: ggirls - 發表於 2018/09/27 21:39(7年前)
1Fstucode: 那兩行結果不同。09/27 22:24
[問題] 在讀取xml檔時碰到瓶頸
[ Python ]5 留言, 推噓總分: +1
作者: mizumutsuki - 發表於 2018/09/23 20:51(7年前)
1Fstucode: 放在當前工作資料夾,不確定在哪的話跑一下:09/23 21:13
2Fstucode: import os; print(os.getcwd())09/23 21:13
[問題] 網頁編碼問題 (unicode轉字串)
[ Python ]2 留言, 推噓總分: 0
作者: imYu1234 - 發表於 2018/08/09 01:53(7年前)
1Fstucode: text.encode('UTF-8').decode('unicode-escape')08/09 19:56
[問題] (已解決)爬蟲圖片遇到編碼問題(日文)
[ Python ]18 留言, 推噓總分: +4
作者: laiDark - 發表於 2018/07/29 12:14(7年前)
8Fstucode: 應該跟 cmd 的 encoding 無關,更何況 3.6 過後 Windows07/29 20:24
9Fstucode: 也預設是 UTF-8。07/29 20:24
10Fstucode: https://i.imgur.com/pDP8h6m.png07/29 20:27
15Fstucode: Windows 下的文字編碼問題有時候的確蠻麻煩的,經驗上07/29 20:42
16Fstucode: 主要都在顯示方面,所以我後來幾乎都直接寫進 log 檔。07/29 20:42
[問題] find 字串的找到與否的判斷,一定要加上比對嗎?
[ Python ]6 留言, 推噓總分: +3
作者: ironmanstock - 發表於 2018/06/28 05:13(7年前)
1Fstucode: if "_" in name:06/28 07:57