作者查詢 / lycantrope

總覽項目: 發文 | 留言 | 暱稱
作者 lycantrope 在 PTT [ Python ] 看板的留言(推文), 共826則
限定看板:Python
[問題] starmap 和 arguments
[ Python ]2 留言, 推噓總分: +1
作者: a29788685 - 發表於 2021/09/03 14:28(4年前)
1Flycantrope: 改用*args跟**kwargs,帶入你想要的function09/03 15:16
2Flycantrope: 如大部分argument都不會變動,可用functools.partial09/03 15:17
[問題] 將特殊檔案開log值輸出圖(急
[ Python ]3 留言, 推噓總分: +2
作者: TimYu930218 - 發表於 2021/09/02 20:42(4年前)
2Flycantrope: ax.set_yscale("log")09/03 08:43
3Flycantrope: data不用取log,其他底用ax.set_yscale("log",base=2)09/03 08:54
[問題] 平行處理問題
[ Python ]5 留言, 推噓總分: +4
作者: chhuang17 - 發表於 2021/08/31 16:05(4年前)
2Flycantrope: 想要有次序可以給queue FIFO08/31 17:41
5Flycantrope: 可以用lock,在AI更新時制計畫時把平行處理鎖起來啊09/01 00:27
Re: [問題] 工作排程器執行pyinstaller的exe
[ Python ]11 留言, 推噓總分: +6
作者: zbug - 發表於 2021/08/24 19:16(4年前)
1Flycantrope: https://stackoverflow.com/questions/4834399308/24 20:26
7Flycantrope: 這error是發生在登入前執行? 沒登入有設權限也沒用08/27 17:14
[問題] thearding join
[ Python ]3 留言, 推噓總分: +1
作者: jasinco - 發表於 2021/08/24 10:31(4年前)
1Flycantrope: 因為thread內的a跟on_release a不同08/24 10:37
2Flycantrope: 你只能用global a 才可以達成你的目的08/24 10:37
3Flycantrope: 不建議使用def type會蓋掉python內的type08/24 10:40
[問題] 資料重組
[ Python ]4 留言, 推噓總分: +2
作者: bigchien - 發表於 2021/08/23 15:19(4年前)
2Flycantrope: https://reurl.cc/Nrkq6n 想知道有沒有更簡單的方式?08/23 17:09
[問題] 新手詢問關於裁切圖片並儲存
[ Python ]3 留言, 推噓總分: +3
作者: cosmicray - 發表於 2021/08/23 15:33(4年前)
1Flycantrope: dict長怎麼樣? 是{"img_name": [bbox_1,...,bbox_n]}?08/23 16:33
2Flycantrope: plt.imshow與plt.show要放到bbox for loop結束後才跑08/23 16:51
3Flycantrope: https://reurl.cc/83KqGb08/23 17:08
[問題] plot xy 刻度用法
[ Python ]18 留言, 推噓總分: +6
作者: thefggeuck - 發表於 2021/08/21 20:45(4年前)
6Flycantrope: 你ytick要用log啊不是-4 to 108/21 23:58
7Flycantrope: Tick locators08/21 23:59
8Flycantrope: 我看錯不是log,那你可以用tick_formator去改08/22 00:03
9Flycantrope: https://reurl.cc/yEdVjl 先除去,再乘回去08/22 14:05
10Flycantrope: 我太蠢了,原來可以使用set_powerlimits 來決定位數08/22 14:46
18Flycantrope: 抱歉,我之前的code少個右括號,現在應該沒問題08/22 16:28
[問題] 輸出到文件的格式能分別設定嗎
[ Python ]38 留言, 推噓總分: +15
作者: Lyumin - 發表於 2021/08/20 12:28(4年前)
3Flycantrope: 你有查string format align? string先format再寫入吧08/20 13:10
13Flycantrope: id加上冒號空格最長就14字,靠右對齊應該是"{:<14}"吧08/20 16:34
14Flycantrope: 推文本身中英混雜,要先處理全半形長度不同才補空格08/20 16:35
20Flycantrope: 你可以用unicodedata.east_asian_width 去計算width啦08/20 17:07
23Flycantrope: 直接弄成dataframe一切都解決,堅持用plain text太累08/20 19:49
30Flycantrope: https://reurl.cc/mL8pyA 先count字數寬度再補空格08/20 21:59
37Flycantrope: 原來可以用big5來計算,又學到一招了。08/21 17:45
[問題] spyder 調特殊圖解析度
[ Python ]6 留言, 推噓總分: +4
作者: TimYu930218 - 發表於 2021/08/21 12:15(4年前)
1Flycantrope: figsize弄大一點啊08/21 12:25
2Flycantrope: 是fig.savefig解析度差還是spyder顯示解析度差?08/21 13:49
3Flycantrope: https://github.com/spyder-ide/spyder/issues/914808/21 13:49
4Flycantrope: fig.savefig可以指定dpi subplot 你要分不同axs去plot08/21 17:27
5Flycantrope: https://reurl.cc/W36oLe08/21 17:40