作者查詢 / lycantrope

總覽項目: 發文 | 留言 | 暱稱
作者 lycantrope 在 PTT [ Python ] 看板的留言(推文), 共826則
限定看板:Python
[問題] tkinter顯示文字更動
[ Python ]6 留言, 推噓總分: +2
作者: pencilBen - 發表於 2022/03/29 00:22(3年前)
1Flycantrope: enter key 應該是用"<Return>"03/29 10:36
2Flycantrope: https://reurl.cc/bkv46303/29 10:37
5Flycantrope: 只從class呼叫不會有問題,但從instance呼叫會不加03/29 13:22
6Flycantrope: 不加staticmethod,會出錯03/29 13:22
[問題] 關於line bot存取csv表格及篩選資料
[ Python ]4 留言, 推噓總分: +2
作者: laya1017 - 發表於 2022/03/24 16:21(3年前)
1Flycantrope: line messaging api python都有一些範例可看03/24 16:47
[問題] 請問 map 指定的 function 會不會自動執行?
[ Python ]3 留言, 推噓總分: +1
作者: pshuang - 發表於 2022/03/24 09:43(3年前)
2Flycantrope: 對,因為python3的map是generator03/24 09:50
[問題] 關於多重繼承與super的呼叫問題
[ Python ]5 留言, 推噓總分: +2
作者: pshuang - 發表於 2022/03/23 15:36(3年前)
1Flycantrope: Method Resolution Order 可以看一下03/23 16:04
2Flycantrope: super() 與super(d,self)等價 就是呼叫d類別下一個mro03/23 16:12
3Flycantrope: d.__mro__有順序,同理super(c,self)會呼叫object03/23 16:13
4Flycantrope: __init__會看不到任何輸出(c的super是object)03/23 16:14
[問題] anaconda虛擬環境套件安裝位置已刪文
[ Python ]10 留言, 推噓總分: +4
作者: gene50814 - 發表於 2022/03/23 02:02(3年前)
9Flycantrope: pip跟conda是分開啊,myenv有先裝pip嗎03/23 14:37
[問題] 用for迴圈找眾數
[ Python ]27 留言, 推噓總分: +8
作者: i329 - 發表於 2022/03/21 19:11(3年前)
16Flycantrope: 初始化並不是任意數都可以...03/22 09:21
19Flycantrope: 初始化選不含在你數值範圍內的值,例,正整數用-103/22 14:39
20Flycantrope: 排序就練不到for-loop03/22 14:40
21Flycantrope: 例:max(occurrences, key = lambda x:occurrences[x])03/22 14:42
[問題] yield跟return
[ Python ]14 留言, 推噓總分: +8
作者: shiyeh - 發表於 2022/03/15 22:58(3年前)
1Flycantrope: 這邊用return的話db.close()會在return 之前執行03/15 23:15
2Flycantrope: yield只是暫時跳出function回傳,之後還會跳回來執行03/15 23:16
3Flycantrope: db.close()03/15 23:16
5Flycantrope: get_db StopIteration 或是被del 都會執行finally03/16 09:56
6Flycantrope: 有點類似另類的context manager 覺得酷可以學起來w03/16 09:58
[問題] matplotlib 下怎麼使用times new roman?
[ Python ]11 留言, 推噓總分: +3
作者: peter308 - 發表於 2022/03/15 16:28(3年前)
3Flycantrope: 先移除matplotlib font cache試試看吧03/15 16:50
4Flycantrope: import matplotlib as mpl; mpl.get_cachedir()03/15 16:51
5Flycantrope: 把找到的cache資料夾刪掉,試看看03/15 16:52
[問題] xlwings指定格子如何使用迴圈?
[ Python ]5 留言, 推噓總分: +2
作者: bearching - 發表於 2022/03/15 14:53(3年前)
1Flycantrope: sheet.range(f"C{i}").value = i03/15 16:46
mac os連結共享資料夾
[ Python ]4 留言, 推噓總分: +2
作者: sukima - 發表於 2022/03/12 08:57(3年前)
1Flycantrope: 用mount_smbfs mount後 才能在/Volumes內找到資料夾03/12 11:13