2019年5月9日

2019-05-09 pycharm自动增加文件头配置

摘要: pycharm 找到该路径并添加以下信息 File->settings->Editor->File and Code Templates->Python Script #!/usr/bin/env python# -*- coding: utf-8 -*-# @Time : ${DATE} ${TI 阅读全文

posted @ 2019-05-09 17:38 IT-Kira 阅读(99) 评论(0) 推荐(0) 编辑

2019年5月7日

2019-05-07

摘要: LeetCode https://github.com/MisterBooo/LeetCodeAnimation 动画讲解 https://github.com/azl397985856/leetcode 解题思路 https://www.zhihu.com/question/24964987/an 阅读全文

posted @ 2019-05-07 19:19 IT-Kira 阅读(103) 评论(0) 推荐(0) 编辑

2019年4月28日

2019-04-28 问题记录

摘要: 查证itervalues的有序性 阅读全文

posted @ 2019-04-28 20:37 IT-Kira 阅读(96) 评论(0) 推荐(0) 编辑

2019年4月15日

2019-04-15 python深浅复制

摘要: 在python中,对象赋值实际上是对象的引用。当创建一个对象,然后把它赋给另一个变量的时候,python并没有拷贝这个对象,而只是拷贝了这个对象的引用 一般有三种方法, alist=[1,2,3,["a","b"]] (1)直接赋值,默认浅拷贝传递对象的引用而已,原始列表改变,被赋值的b也会做相同的 阅读全文

posted @ 2019-04-15 19:22 IT-Kira 阅读(202) 评论(0) 推荐(0) 编辑

2019年4月11日

2019-04-11 统计日志重复数量

摘要: 去除重复行 sort file |uniq 查找非重复行 sort file |uniq -u 查找重复行 sort file |uniq -d 统计 sort file | uniq -c 格式如: 1:[2019-04-11 17:17:17] 321331(8090) add 1 tem ca 阅读全文

posted @ 2019-04-11 14:02 IT-Kira 阅读(291) 评论(0) 推荐(0) 编辑

2019年3月23日

2019-03-23 shell练习,日志统计

摘要: [2019-03-10 17:44:55]1234567 paid 10 10000 cat test.txt |tail -n +1 |sed 's/]/ ]g' |awk '{count[$3]+=$6}END{for(key in count) print key" "count[key]}' 阅读全文

posted @ 2019-03-23 17:50 IT-Kira 阅读(97) 评论(0) 推荐(0) 编辑

2019年3月12日

问题记录2019-03-12

摘要: not all arguments converted during string formatting 阅读全文

posted @ 2019-03-12 11:11 IT-Kira 阅读(65) 评论(0) 推荐(0) 编辑

2019年3月6日

问题记录2019-03-06(todo)

摘要: RuntimeError: maximum recursion depth exceeded while calling a Python object 阅读全文

posted @ 2019-03-06 16:54 IT-Kira 阅读(59) 评论(0) 推荐(0) 编辑

回归

摘要: 好久没更了2333 flag是真的没用,接下来希望能记录一些东西 阅读全文

posted @ 2019-03-06 15:55 IT-Kira 阅读(71) 评论(0) 推荐(0) 编辑

2018年1月10日

Mac进行 usr/bin 目录下修改权限问题,operation not permitted

摘要: 一般情况下我们在使用mac系统过程中下载一些文件、新建一些项目之后,这些文件都会默认是只读状态,这时我们只需要简单的一句权限设置命令就可以解决 但是我们在对 usr/bin 目录下的文件进行操作的时候往往会出现这样的错误(上一篇博客中关于git安装进行软连接就会遇到这样的问题) 这是因为一些mac用 阅读全文

posted @ 2018-01-10 04:32 IT-Kira 阅读(7686) 评论(0) 推荐(0) 编辑

导航