- 博客(7)
- 收藏
- 关注
原创 【Python】ipython 快捷键 魔术命令 以及系统交互命令
Ipython shell命令 - Ctrl-P 或上箭头键 后向搜索命令历史中以当前输入的文本开头的命令 - Ctrl-N 或下箭头键 前向搜索命令历史中以当前输入的文本开头的命令 - Ctrl-R 按行读取的反向历史搜索(部分匹配) - Ctrl-Shift-v 从剪贴板粘贴文本 - Ctrl-C 中止当前正在执行的代码 - Ctrl-A 将光标移动到行首
2016-08-15 09:52:01 6309 1
原创 【Opencv】cvCreateTrackbar Error "void (*)(int)"类型的实参与"int"类型的形参不兼容
在《学习Opencv》一书( 2009年10月第一版)轮廓一章(p269.)中,按实例代码运行会产生类型错误: Error "void (*)(int)"类型的实参与"int"类型的形参不兼容。 原因可能是我们现在常用的opencv2库函数对opencv中的cvCreateTrackbar函数做了小的修改,因此我们将回调函数放在了一个错误的参数位置上。 将cvCreateTra
2016-07-25 10:46:06 4839
原创 【Codewars】Roman Numerals Encoder 正整数转罗马数字
直接贴最佳答案了,up主的思路实在是相形见拙 代码很简单,应该看得懂吧。反正也没有人评论。。。 def solution(n): roman_numerals = {1000:'M', 900: 'CM', 500: 'D', 40
2016-07-07 19:00:19 940 1
转载 【Visual Studio】error C2019: 应输入预处理器指令,却找到“1”
void CAdaboostFaceDlg::OnEnChangeRoad() { // TODO: 如果该控件是 RICHEDIT 控件,它将不 // 发送此通知,除非重写 CDialog::OnInitDialog() // 函数并调用 CRichEditCtrl().SetEventMask(), // 同时将 ENM_CHANGE 标志“或”运算到掩码中。
2016-06-29 12:14:09 9165
原创 【Codewars】Sudoku Solution Validator 实现数独验证器
原题描述Description: Sudoku Background Sudoku is a game played on a 9x9 grid. The goal of the game is to fill all cells of the grid with digits from 1 to 9, so that each column, each row, and each o
2016-06-16 14:47:04 2829
原创 【Codewars】判断括号是否有效 validParentheses
题目描述:Write a function called validParentheses that takes a string of parentheses, and determines if the order of the parentheses is valid. validParentheses should return true if the string is valid,
2016-06-15 20:57:48 1017
原创 【leetcode】(Python)Reverse Vowels of a String实现字符串内元字符倒序
Write a function that takes a string as input and reverse only the vowels of a string. (需要注意的是题意为将“所有”元音字母倒序,并且原因字母要考虑到大小写) Example 1: Given s = "hello", return "holle". Example 2: Given s
2016-04-24 13:38:13 557
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人