03 2022 档案

摘要:function getobjallmethods($obj) { $class = new ReflectionClass($obj); foreach ($class->getMethods() as $key => $methodType) { if ($methodType->isPriva 阅读全文
posted @ 2022-03-28 16:03 tochenwei 阅读(60) 评论(0) 推荐(0) 编辑
摘要:比如:git stash show -p stash@{1}是查看倒数第二最近stash的变化。 git stash show -p stash@{10}是查看倒数第十一最近stash的变化 阅读全文
posted @ 2022-03-07 14:57 tochenwei 阅读(1287) 评论(0) 推荐(0) 编辑
摘要:# 一个去除字典列表的重复元素的方法list_users = [{'a': 1}, {'b': 2}, {'a': 1}] list_users = [dict(t) for t in set([tuple(d.items()) for d in list_users])] # 结果: [{'b': 阅读全文
posted @ 2022-03-02 20:10 tochenwei 阅读(297) 评论(0) 推荐(0) 编辑