- 博客(12)
- 资源 (8)
- 收藏
- 关注
原创 dataframe split 截取字符串后 取指定列的值
假设根据全路径地址,按照"/"截取最后一列获取其文件名。import pandas as pddf = pd.DataFrame(['/home/xxx/20190222.wav'],columns = ['filepath'])df为: filepath0 /home/xxx/20190222.wavdf['filename'] = df['filepath'...
2019-03-20 16:13:05
5717
原创 ubuntu root 或者 普通用户 的密码忘了,解决办法
1、重启ubuntu,随即长按shirft进入grub菜单;2、选择recovery mode,按"e"键进入编辑页面;3、将ro single替换为rw single init=/bin/bash;4、按ctrl+x进入单用户模式,当前用户即为root;Then , just do what you want . No thanks.
2015-08-19 11:39:16
521
原创 json获取的数据 select option中显示不正常 alert正常
select 的 option中 ,不要有符号。例如 我的 是不应该这样做的。去掉 成长之路两边的
2015-07-08 22:29:09
431
原创 mysql 数据库字段为 call 数据无法插入
I believe 'call' is a key of mysql, change it to 'callhim' whatever, it will be ok.
2015-07-06 21:07:42
688
原创 uncaught typeerror, var test.match is not a function.
使用 typeof 查看变量类型。例如 alert(typeof(testvar));若是boolean类型,直接用 if(test){ //do one thing }else{ //do another thing } 来使用。
2015-07-05 19:55:50
1534
原创 jquery ajax中append生成的div 有问题,可能是浏览器自动补全的原因。
发生这种情况时,先在js中给字符串赋值,最终一次性append 生成好的字符串。
2015-06-23 10:52:03
968
原创 svn 服务端是Linux(ubuntu),客户端是windows,安装指导
服务器端:1. sudo apt-get install subversion //安装subversion2. //创建项目目录mkdir /home/svn/hjd //hjd 是项目cd /home/svnchmod 777 hjd -R3.//创建仓库sudo svnadmin create /home/svn/hjd4
2015-06-18 11:48:49
421
原创 eclipse java 和 普通文件中,注释汉字字体问题。
eclipse 中,普通文本文件字体:window -> preference -> basic -> text font -> 字体改为:Courier New java文件字体:window -> preference -> java-> java editor text font -> 字体改为:Courier New Then it will be
2015-06-12 22:15:56
547
原创 数据库 外键与索引
创建外键的前提:1:参照表的字段是否存在.2:组成外键字段要求被索引,外键字段在其他表上是主键.3:都为innodb表.4:字段类型一样.5:语法正确.
2015-06-12 10:04:33
350
原创 mysql int 10 字段长度
The wrong understanding:int 10 can store the number 1234567890, and int 3 can only store the number 123.It should be that:Yes, in type int ,the max value of number has nothing with it's lengt
2015-06-11 09:19:18
539
原创 vsftpd 530 login incorrect on ubuntu
step 1:check the /etc/vsftpd.confstep 2:check the /etc/vsftpd.chroot_liststep 3:check the /etc/ftpuserstep 4:make sure the access to chroot directory (/var/www , for example) is rx at least,and
2015-04-23 18:36:32
307
matlab使用gabor变换和神经网络实现人脸识别。可用。
2015-06-12
java servlet mysql 简单实例
2015-06-09
fckeditor for php
2012-09-10
API大全 php jsp jdk javascript xml html 的api
2011-06-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人