05 2018 档案

摘要:http://blog.csdn.net/ltx19860420/article/details/5570902 1. shell脚本中定义的变量是global的,其作用域从被定义的地方开始,到shell结束或被显示删除的地方为止。 #!/bin/bashltx_func() { echo $v1 阅读全文
posted @ 2018-05-31 09:37 PKICA 阅读(807) 评论(0) 推荐(0) 编辑
摘要:1 body = {} 2 3 item = {} 4 item['one'] = 'vip1' 5 item['two'] = 'vip2' 6 body.update({'vip':item}) # not exist 7 print(body) 8 9 # if exist 10 item[' 阅读全文
posted @ 2018-05-30 16:30 PKICA 阅读(402) 评论(1) 推荐(1) 编辑
摘要:模块名: 小写字母,单词之间用_分割 参考python:logging 包名: 小写字母,单词之间用_分割 参考python:logging 类名: 单词首字母大写 参考:python class LogRecord(object): 普通变量: 小写字母,单词之间用_分割 参考:exc_info 阅读全文
posted @ 2018-05-28 15:24 PKICA 阅读(287) 评论(0) 推荐(0) 编辑
摘要:之前说过断点调试,但是针对的是单文件的断点调试。在实际应用中,一个项目是多目录多文件的 参考资料:gdb debugger 目录结构: $ tree .├── gdbSomeFiles.cpp├── Libs│ ├── add.cpp│ ├── add.h│ └── makefile└── make 阅读全文
posted @ 2018-05-26 17:51 PKICA 阅读(2991) 评论(0) 推荐(1) 编辑
摘要:41. First Missing Positive Given an unsorted integer array, find the smallest missing positive integer. Example 1: Example 2: Example 3: Note: Your al 阅读全文
posted @ 2018-05-20 14:15 PKICA 阅读(135) 评论(0) 推荐(0) 编辑
摘要:问题:the system cannot find file **.exe。 解决方法:开始-运行-输入regedit打开注册表编辑器,找到 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/WindowsNT/CurrentVersion/Image File Execu 阅读全文
posted @ 2018-05-19 17:19 PKICA 阅读(253) 评论(0) 推荐(0) 编辑