- 博客(4)
- 问答 (4)
- 收藏
- 关注
原创 一些算法
一些算法 判断一个数是不是质数, 输入 int, 输出 bool def i_is_prime_number(num): if num <= 3: return True else: sqrt_num = int(sqrt(num)) for j in range(2, sqrt_num + 1): if num % j == 0:
2021-04-29 15:03:02
101
1
原创 对list, dict, tuple的整理及一些函数的操作对象和返回对象
本文是对list, dict, tuple方法的整理 参考《像计算机科学家一样思考python》 list 列表是可变的(重要) for 循环, 拼接列表, + 运算符 切片, t[1:2] append, t.append([object]) sum pop, t.pop(1) del, del t[1] remove, t.remove(‘b’) list, list[‘string’] split(), t.split(‘string’) join(), join_method.join([lis
2021-04-28 09:23:59
173
1
原创 关于for循环的思考
关于for循环的思考 for循环在像《计算机科学家一样思考python》中, 明确出现于P.74中, 用处是遍历逻辑: prefixes = '660781' for letter in prefixes: print(letter) 6 6 0 7 8 1 这之中隐藏了一个默认, 即在for循环中内置了一个顺序; 用食物进行比喻的话,在for循环中, 用于for循环的食物(可迭代对象)为客人能够在表面看到的(eg: ‘660781’), 但在食物之下还有盘子(被python隐藏了),
2021-04-27 13:57:29
331
原创 Cartographer_01: 使用CLion配置Cartographer_Superbuild
使用CLion配置Cartographer_Superbuild 笔者计算机新手,尝试使用CLion debug Cartographer, 其间遇到多方困难,最后使用github上一位大佬写的Cartographer_Superbuild 成功 debug。 特此记录,以防忘记。 首先,配置, 操作系统: Ubuntu 18.04 LTS Ros: Melodic IDE: CLion 2020.2.4 debug 代码: Cartographer_Superbuild Melodic 安装网址: lin
2020-10-19 15:40:31
1148
5
空空如也
ubuntu 18.04 clion build 无法找到头文件
2020-09-15
霍夫变换轮廓线与图像轮廓不符
2020-07-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅