session数据存取的方法可通过session.serialize_handler方法来判断,反序列化可通过下面的unserialize方法,参考http://stackoverflow.com/questions/27813619/unserializing-php-session-data-from-db-table public static function unserialize($session_data) { $method = ini_get("session.serializ
pandas大家用的都很多,像我这种用的不够熟练,也不够多的就只能做做笔记,尽量留下点东西吧. 筛选行: a. 按照列的条件筛选 df = pandas.DataFrame(...) # supposing it has 3 columns: a, b and c df[(df['a'] > 0) & (df['b'] < 0) | df['c'] > 0] b. 按照索引的条件筛选 needed_seq=[1,2,3,6] needed_df = df.loc[needed_s