![](https://img-blog.csdnimg.cn/20200303143415160.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
即查即用
文章平均质量分 54
某些常见疑难杂症问题的解决方法,有实效性
Linky1990
这个作者很懒,什么都没留下…
展开
-
pandas map 和 apply 的区别与使用
区别map 方法作用于 Series,用于遍历 Series 中的每一个元素apply 作用于 DataFrame ,用于遍历 DataFrame 中的每一行或者每一列使用# map 作用于 df 属性 attr1 的每个元素df.attr1.map(lambda x : x)# apply 作用域 df 的每一行,或者每一列元素# axis = 1 表示每一行df.app...原创 2020-03-06 12:05:52 · 178 阅读 · 0 评论 -
命令行 创建 React Native 项目
1、在 React Native 中文版文档0.51 中,创建项目用如下命令:npm install -g yarn react-native-clireact-native init AwesomeProjectcd AwesomeProjectreact-native run-android2、在 React Native 英文版0.55中,创建项目用如下命令:npm in原创 2020-03-06 11:51:30 · 428 阅读 · 0 评论 -
numpy 点积 ValueError: shapes (3,2) and (3,) not aligned: 2 (dim 1) != 3 (dim 0)
numpy 矩阵点积时,经常遇到这样的错误:ValueError: shapes (3,2) and (3,) not aligned: 2 (dim 1) != 3 (dim 0)这表示点积左边的矩阵维度(dim) 是 3 * 2 的,而右边的数组有 3 个元素,2 != 3,于是报错。这时可以将右边的数组移到点积的左边,于是变成了 3 个元素的数组和 3 * 2 的矩阵的点击,此时 3 ...原创 2020-03-06 11:09:13 · 20800 阅读 · 0 评论 -
conda pip 导出 导入 安装 requirements
pip 导出pip freeze > requirements.txtpip 安装 requirementspip install -r requirements.txtconda 导出conda list -e > requirements.txtconda 安装 requirementsconda install --yes --file requirement...原创 2020-03-06 10:29:45 · 3181 阅读 · 2 评论 -
android shell 生成 keystore 查看 keystore apk 签名 sha1 apktool
第一步:生成 keystore keytool -genkey -v -keystore android.keystore -alias android.keystore -keyalg RSA -validity 20000第二步: jarsigner 签名 apk jarsigner -verbose -keystore android.keystore -signedjar andr原创 2020-03-06 09:11:58 · 422 阅读 · 0 评论 -
matplotlib 对坐标轴操作
fig = plt.figure()ax = fig.add_subplot(111)ax.set_xlim([0,3])ax.set_ylim([-3,3])# 隐藏 上边 和 右边 的坐标轴ax.spines['top'].set_color('none')ax.spines['right'].set_color('none')# 移动 x 轴 和 y轴 到 原点位置ax...原创 2020-03-04 14:43:07 · 409 阅读 · 0 评论 -
latex 公式左对齐
参考 https://blog.csdn.net/heheeh123/article/details/89960973\begin{equation}\begin{aligned}a &= b &= c \end{aligned}\end{equation}原创 2020-03-04 14:34:27 · 6271 阅读 · 0 评论 -
浏览器 console js 的常用语句
a = document.getElementsByClassName("course-count")for (let i = 0; i < a.length; i++){ console.log(a[i].textContent)}原创 2020-03-04 14:30:00 · 342 阅读 · 0 评论 -
时间序列分析 bprophet 画图提示:float() argument must be a string or a number 的解决方法
参考:https://github.com/facebook/prophet/issues/999使用 fbprophet 预测时间序列模型绘制预测数据时,得到如下错误:TypeError: float() argument must be a string or a number, not 'datetime.datetime'from fbprophet import Prophetm...原创 2019-08-08 16:54:33 · 7408 阅读 · 7 评论 -
ecshop 关于 preg_replace /e 修饰符不安全的几处改动
主要集中在 upload/includes/cls_template.php 文件中: 1:line 300 : 原语句: return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source); 修改为: return preg_replace_callback("/{([^原创 2014-06-24 14:05:08 · 6550 阅读 · 1 评论 -
android sqlite query 按照 id 降序排列
db.query(TABLE_NAME, projection, null, null, null, null, "id desc");这里的 desc 必须是小写,和 id 之间有个空格原创 2014-02-20 18:06:56 · 12888 阅读 · 0 评论 -
android RecyclerView 中添加 FooterView 和 DividerItemDecoration 后不能正确显示的问题
今天被一个问题困扰了一个下午,在 RecyclerView 中添加 FooterView 后,由于产品需求,最后一行不能存在间隔,所以需要在 DividerItemDecoration 中将最后一行的上下两个间隔去掉,代码如下: public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.原创 2016-12-08 20:17:28 · 2904 阅读 · 0 评论 -
android.support.v7.internal.app.WindowDecorActionBar
SDK 版本更新到 6.0 之后,在 xml 布局时有时会出现如下错误,并且不能实现预览功能The following classes could not be found android.support.v7.internal.app.WindowDecorActionBar这个问题要是不知道如何处理的话,确实挺让人头疼的,但是知道如何处理的话,却可以很简单地处理。处理方法,如下图所示:将 API原创 2015-11-27 10:18:04 · 3249 阅读 · 1 评论 -
在 ubuntu 14.04 下,配置 apache2 的虚拟主机步骤
首先打开三个 terminal,并分别获得 root 权限在三个 terminal 中,分别进入 /etc/apache2 目录其中一个 terminal 进入 site-available 中并复制 000-default.conf 文件一份,重命名为需要的虚拟主机 target.conf>$ cp site/available/000-default.conf target.conf依原创 2017-01-21 16:51:46 · 694 阅读 · 0 评论 -
sed + grep 解决 Android docs 打开慢的问题
cd 进入 docs 所在目录,然后执行下列语句sed -i 's/<script src=\"http:\/\/www.google.com\/jsapi\" type=\"text\/javascript\"><\/script>/<!-- <script src=\"http:\/\/www.google.com\/jsapi\" type=\"text\/javascript\"><\/sc原创 2015-07-06 11:47:12 · 730 阅读 · 0 评论 -
unzip 解压后文件名乱码问题
unzip -O cp936 a.zip原创 2019-11-13 16:12:04 · 462 阅读 · 0 评论 -
H5 video 使用 Plyr 后默认不显示字幕的解决方法
思路:修改 video 的 textTracks 属性的 mode 值videos = document.getElementsByTagName('video');for (var i = videos.length - 1; i >= 0; i--) { videos[i].textTracks[0].mode ='showing';}参考:https://stackov...原创 2019-11-22 15:27:11 · 824 阅读 · 0 评论