作者查詢 / yjc1
作者 yjc1 在 PTT [ Python ] 看板的留言(推文), 共78則
限定看板:Python
看板排序:
1F→: 1. df2.columns.name = ''01/23 01:19
2F→: 2. df2.drop(df2.index[0]); df2.index = range(len(df2))01/23 01:23
3F→: 不過總覺得你的要求有點怪…01/23 01:24
2F→: fnmatch12/27 22:19
7F→: c=[t[0] for t in a] , 但這其實也是 loop05/21 02:01
11F→: struct.unpack('>3h', binary_string)05/05 01:13
5F→: nd = 4; fmt="0%db"%(nd*nd)04/16 17:45
6F→: for x in xrange(2**(nd*nd)):04/16 17:45
7F→: print(np.array(list(format(x, fmt))).reshape(nd,nd))04/16 17:45
5F→: x=np.array(L)04/16 09:46
6F→: print (sum(sum(v>=3 for v in Counter(p).values())04/16 09:47
7F→: for p in chain(x,x.T)))04/16 09:48
11F→: sum(any(len(list(g))>=3 for k, g in groupby(v))04/17 23:28
12F→: for p in (x,x.T) for v in p)04/17 23:28
13F→: 把 any 改成 sum04/18 17:40
1F→: 看不太懂意思…但沒猜錯的話你想要的是 globals()['msg1'] ?07/07 14:42
1F→: https://docs.python.org/3.3/library/atexit.html ?12/07 14:40
1F→: tad_add/tag_config . example: http://goo.gl/LCbbz210/15 00:37
17F→: 不考慮用shell的sort -n < input.csv | uniq > output.csv ?08/24 20:41