本文由伯乐在线-atupal翻译自Alex Ivanovs。欢迎加入技术翻译小组。转载请参见文章末尾处的要求。用 Python 写代码并不难,事实上,它一直以来都是被声称为最容易学习的编程语言。如果你正打算学习 web 开发,Python 是一个不错的选择,甚至你想学游戏开发也可 以从 Python...
分类:
编程语言 时间:
2014-06-15 23:58:02
阅读次数:
871
去空格及特殊符号 s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2) sStr1 = 'strcpy' sStr2 = sStr1 sStr1 = 'strcpy2' print sStr2连接字符串#strcat(sStr1,sStr2)...
分类:
编程语言 时间:
2014-06-15 23:51:33
阅读次数:
341
原题地址:https://oj.leetcode.com/problems/unique-paths/题意:A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The ...
分类:
编程语言 时间:
2014-06-15 23:37:55
阅读次数:
311
原题地址:https://oj.leetcode.com/problems/unique-paths-ii/题意:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many ...
分类:
编程语言 时间:
2014-06-15 23:33:26
阅读次数:
353
今天看了点JavaScript,里面的内容和Visual Basic的语言类似。也许大家都会说:语言嘛,都是有通用性的。这也不奇怪他和Visual Basic类似。学习了python、django、Visal Basic。都没有能够学到家是因为语言的语句是不同的但是用法也是不一样的。但是我能看懂代....
分类:
编程语言 时间:
2014-06-15 23:16:11
阅读次数:
375
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Commentshttp://zh-google-styleguide.readthedocs.org/en/latest/google-python-styleguide/...
分类:
编程语言 时间:
2014-06-15 23:01:13
阅读次数:
216
在crontab定时执行python脚本,在shell下没有问题,在crontab中报no module,找不到安装的库。1 crond服务未启动crontab不是Linux内核的功能,而是依赖一个crond服务,这个服务可以启动当然也可以停止。如果停止了就无法执行任何定时任务了,解决的方法是打开它...
分类:
编程语言 时间:
2014-06-15 22:17:58
阅读次数:
423
原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:
编程语言 时间:
2014-06-15 22:10:42
阅读次数:
1109
原题地址:https://oj.leetcode.com/problems/merge-two-sorted-lists/题意:Merge two sorted linked lists and return it as a new list. The new list should be made...
分类:
编程语言 时间:
2014-06-15 21:58:31
阅读次数:
238
求监控组的大哥大妹子们干点事,真不容易!要问他们是谁?他们是神。轻易别找他们,因为找了也是白找。上次因为python和redis长时间brpop的时候,会有线程休眠挂起的情况,所有通知报警平台被下线了。这次算是完美解决了。再把他给上线。这两公司的告警已经开始往我这边的接口..
分类:
数据库 时间:
2014-06-13 21:08:17
阅读次数:
414