作者查詢 / ides13

總覽項目: 發文 | 留言 | 暱稱
作者 ides13 在 PTT [ Python ] 看板的留言(推文), 共90則
限定看板:Python
Re: <請教>金字塔輸出的格式化問題
[ Python ]9 留言, 推噓總分: +1
作者: ides13 - 發表於 2017/05/08 10:54(7年前)
2Fides13: 不用format函式的話,可以用這個。05/08 13:11
3Fides13: for i in range(a):print(" "*(a-1-i) + "*" + " *"*i)05/08 13:12
8Fides13: u大的作法的確比較酷。05/08 20:15
[問題]請問pandad讀取csv檔發生的問題??
[ Python ]6 留言, 推噓總分: +1
作者: processior - 發表於 2017/05/05 17:37(7年前)
2Fides13: Try callingead_csvithncoding='latin1',ncoding=05/05 21:54
3Fides13: 'iso-8859-1'rncoding='cp1252'; these the various e05/05 21:54
4Fides13: ncodings found on Windows.05/05 21:54
5Fides13: stackoverflow的推薦05/05 21:55
[問題] 新手物件導向問題
[ Python ]18 留言, 推噓總分: +5
作者: me8z7gnk - 發表於 2017/05/04 20:35(7年前)
4Fides13: 因為是淺複製。用deepcopy就不會了。05/04 21:18
13Fides13: http://www.pythontutor.com/visualize.html#mode=edit05/05 06:10
14Fides13: pythontutor提到一個動畫解釋這個問題,把程式碼貼上執行05/05 06:12
[問題] Enum建立大量的字串
[ Python ]18 留言, 推噓總分: +4
作者: jacobcan118 - 發表於 2017/05/04 10:18(7年前)
1Fides13: 將所有的format編寫成字典,然後用key調用?Dpath[key].05/04 11:38
4Fides13: 我不確定,但將format編成字典是cookbook中的例子內的作法05/04 21:48
5Fides13: http://tinyurl.com/kuaou94。指定變數字符串。05/04 22:00
15Fides13: https://youtu.be/mWB3oh1GPdo?t=19105/11 18:03
16Fides13: Avoid overengineering datastructures.05/11 18:04
17Fides13: Tuples are better than objects (try namdtuple too05/11 18:05
18Fides13: too though).Prefer simple fields over getter/setter fn05/11 18:06
Re: [問題] 刪除不連續數字
[ Python ]5 留言, 推噓總分: +1
作者: ides13 - 發表於 2017/05/02 13:04(7年前)
4Fides13: enumerate經m大解釋後懂了,map和itemgeter(1)還不懂。05/02 20:38
Re: [問題] append 變數問題
[ Python ]2 留言, 推噓總分: 0
作者: ides13 - 發表於 2017/04/24 14:23(7年前)
2Fides13: 了解,謝謝指教。我剛起步學,算是新手。04/24 20:49
[問題] 關於清理資料的問題。
[ Python ]4 留言, 推噓總分: 0
作者: ides13 - 發表於 2017/04/24 11:37(7年前)
3Fides13: o大謝謝指教。想了好久原來是腦筋打結了,再次感謝。04/24 16:33
[問題] list 用slice寫入
[ Python ]4 留言, 推噓總分: +3
作者: dummytrue - 發表於 2017/04/20 16:25(7年前)
4Fides13: for i in range(7):table[i+2][0] = left[i]; i=i+104/20 18:16
[問題] setting an array element with a seque
[ Python ]9 留言, 推噓總分: +3
作者: anyonred - 發表於 2017/04/19 13:46(7年前)
2Fides13: 這是你要的嗎?http://codepad.org/fiC69x0804/20 19:53
8Fides13: 把'a拿掉就是數值了。04/22 18:32