- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 python读取txt文本文件,字符长度多1
在文本中每行开头都有个"/n",代表换行,此换行符占了1个长度,可用len(str)查看。使用 new_str = str.strip(),即可实现去除换行符,再用len(str)检查。
2018-04-11 14:35:52 4479
原创 mac下import caffe崩溃
mac系统:10.12.6python:自己安装,非mac自带python前置条件:编译pycaffe成功问题:import caffe执行时候崩溃Segmentation fault...Process: Python [15242] Path: /usr/local/Cellar/python/2.7.13/Frameworks/P...
2018-04-11 11:58:53 320
原创 py-faster-rcnn 训练常见错误
py-faster-rcnn 训练常见错误在训练 py-faster-rcnn 时,常会出现以下错误:TypeError: ‘numpy.float64’ object cannot be interpreted as an indexCheck failed: error == cudaSuccess (4 vs. 0) unspecified launch failureAttribut
2017-06-04 09:52:52 6314
原创 React 组件的生命周期
在React中,组件不是真实的 DOM 节点(组织页面/文档的对象被组织在一个树形结构中,用来表示文档中对象的标准模型就称为DOM),而是存在于内存之中的一种数据结构—虚拟 DOM 。只有当它插入文档以后,才会变成真实的 DOM 。因此,Reacet组件的生命周期由以下三段组成:Mounting:已插入真实 DOMUpdating:正在被重新渲染Unmounting:已移出真实 DOM与之对
2017-04-10 10:54:46 334
原创 React-native 常见问题:Warning 当使用组件 react-native-gifted-listview
当使用react-native-gifted-listview组件时,可能出现以下几个警告:**解决方法:**Warning:In next release empty section headers will be rendered.In this release you can use 'enableEmptySections' flag to render empty section h
2017-04-06 16:40:04 2251
原创 React native 常见错误:unable to resolve module react-native-scrollable-tab-view
1.添加react-native-scrollable-tab-view,控制台输入 npm install react-native-scrollable-tab-view --save2.添加失败,将package.json中的”bundle-android”去掉。(为什么会有bundle-android?)
2017-04-06 11:45:09 4068
原创 React-native 常见错误:Could not get BatchedBridge, make sure your bundle is packaged correctly
修改RN项目根目录下的package.json文件: “scripts”下添加"bundle-android": "react-native bundle –platform android –dev false –entry-file index.android.js –bundle-output android/app/src/main/assets/index.android.bun
2017-04-06 11:05:58 954
原创 统计学习方法第十章习题答案
【10.1】解:按照后向算法10.3 (1) 计算初值 (2) 递推计算 (3) 终止 【10.2】解:按照前向后向算法式10.23, 【10.3】解:按照维特比算法10.5, (1) 初始化 (2) 递推 其中t=2,3的结果已在例10.3中求出,现求当t=4时, (3) 终止 最优路径的
2017-04-05 16:24:23 3688 3
原创 React-native 常见错误:Seems you're trying to access 'ReactNative.Component' from the 'react-native'
在RN 25版本之前,旧版本的React是从react-native 中import的,如果升级完依赖之后,直接运行项目之后会得到一个报错信息: Seems you’re trying to access ‘ReactNative.Component’ from the ‘react-native’ pakeage. Perhaps you meant to access ‘React.C
2017-04-05 16:08:04 588
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人