自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

tianyuan233

好好学习 天天向上

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除