- 博客(7)
- 收藏
- 关注
原创 git 删除文件
拉取$ git pull origin masterFrom github.com:aallennty/Py3Study* branch master -> FETCH_HEADAlready up-to-date.删除$ git rm -r --cached .idearm '.idea/Py3Study.iml'rm '.idea/misc.xml'rm '.idea/modules
2018-01-26 13:37:03 441
原创 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UX
win下运行python报错:SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape$ "D:/Program Files/Python 3.5/python.exe" c:/Users/Administrator/Deskto
2018-01-19 10:23:55 391
原创 python使用python-binary-memcached操作memcached
安装bmemcachedgithub地址:https://github.com/jaysonsantos/python-binary-memcachedpip install python-binary-memcached使用实例读取文本中的key并插入memcached方法:set#!/usr/bin env python#VideoInfo0_366...
2018-01-19 09:32:31 1005
原创 linux查看进程启动时间(运行多长时间)
ps -eo lstart 启动时间 ps -eo etime 运行多长时间.ps -eo pid,lstart,etime | grep 5176
2018-01-18 18:18:48 3618
原创 [freeCodeCamp] Find the Longest Word in a String解题
题目:找出最长单词在句子中找出最长的单词,并返回它的长度。函数的返回值应该是一个数字。代码function findLongestWord(str) { // 请把你的代码写在这里 var longest = 1; var shuzu = str.split(" "); for(var i=0;i<shuzu.length;i++) { if (shuzu[i].len
2018-01-12 18:04:39 285
原创 [freeCodeCamp] Check for Palindromes解题
题目:检查回文字符串如果给定的字符串是回文,返回true,反之,返回false。如果一个字符串忽略标点符号、大小写和空格,正着读和反着读一模一样,那么这个字符串就是palindrome(回文)。注意你需要去掉字符串多余的标点符号和空格,然后把字符串转化成小写来验证此字符串是否为回文。代码:function palindrome(str) { // 请把你的代码写
2018-01-12 17:10:45 340
原创 mongo常用命令备忘
查看所有数据库show dbs切换到指定数据库,如果数据库不存在,则创建数据库use xxx列出当前表show collections计数db.commentinfo.count()只查询一条数据db.commentinfo.findOne()按条件查询数据并计数db.commentinfo.find({"createtime":{"$gte":ISODate("2017-01-01T00:00:0
2018-01-08 16:03:10 283
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人