作者查詢 / ides13
作者 ides13 在 PTT [ Python ] 看板的留言(推文), 共90則
限定看板:Python
看板排序:
全部Patent533Gossiping264Python90Stock52Jeremy_Lin40book37Hsinchu34Test33Liu29EzHotKey24e-coupon22HatePolitics18nCoV201913Eng-Class11TaichungCont11Key_Mou_Pad10Rockets10Translation10WorldCup4Baseball3PublicIssue3NBA2Olympics_ISG2biker1Boy-Girl1FuMouDiscuss1GoodPregnan1Japandrama1JapanStudy1LAW1MobileComm1ONE_PIECE1PublicServan1watch1<< 收起看板(34)
2F→: 不用format函式的話,可以用這個。05/08 13:11
3F→: for i in range(a):print(" "*(a-1-i) + "*" + " *"*i)05/08 13:12
8F→: u大的作法的確比較酷。05/08 20:15
2F推: Try callingead_csvithncoding='latin1',ncoding=05/05 21:54
3F→: 'iso-8859-1'rncoding='cp1252'; these the various e05/05 21:54
4F→: ncodings found on Windows.05/05 21:54
5F→: stackoverflow的推薦05/05 21:55
4F推: 因為是淺複製。用deepcopy就不會了。05/04 21:18
13F推: http://www.pythontutor.com/visualize.html#mode=edit05/05 06:10
14F→: pythontutor提到一個動畫解釋這個問題,把程式碼貼上執行05/05 06:12
1F推: 將所有的format編寫成字典,然後用key調用?Dpath[key].05/04 11:38
4F推: 我不確定,但將format編成字典是cookbook中的例子內的作法05/04 21:48
5F推: http://tinyurl.com/kuaou94。指定變數字符串。05/04 22:00
15F推: https://youtu.be/mWB3oh1GPdo?t=19105/11 18:03
16F→: Avoid overengineering datastructures.05/11 18:04
17F→: Tuples are better than objects (try namdtuple too05/11 18:05
18F→: too though).Prefer simple fields over getter/setter fn05/11 18:06
4F→: enumerate經m大解釋後懂了,map和itemgeter(1)還不懂。05/02 20:38
2F→: 了解,謝謝指教。我剛起步學,算是新手。04/24 20:49
3F→: o大謝謝指教。想了好久原來是腦筋打結了,再次感謝。04/24 16:33
4F推: for i in range(7):table[i+2][0] = left[i]; i=i+104/20 18:16
2F推: 這是你要的嗎?http://codepad.org/fiC69x0804/20 19:53
8F推: 把'a拿掉就是數值了。04/22 18:32