Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:
其他好文 时间:
2014-09-03 16:40:46
阅读次数:
231
替换字符串中的子串任务: 给定一个字符串,通过查询一个字符串替换字典,将字符串中被标记的子字符串替换掉。解决方案:>>> import string>>> new_style = string.Template('this is $thing')#给substitute 方法传入一个字典参数并调用....
分类:
编程语言 时间:
2014-09-03 16:26:46
阅读次数:
213
进入mysqlserver
如下:
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 810
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights rese...
分类:
数据库 时间:
2014-09-03 15:03:46
阅读次数:
243
Cheapest Palindrome
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 5868
Accepted: 2853
Description
Keeping track of all the cows can be a tricky task so...
分类:
其他好文 时间:
2014-09-03 15:01:56
阅读次数:
289
有经验的程序员时常告诉新人”语言不重要,重要的是逻辑和思路“
后半句没错,但前半句错了。
语言很重要。
语言对于一个程序员就像钱和文凭,拥有的时候就显得不重要,但是对于新手们,还在选择主力开发语言时就显得相当重要了。...
分类:
其他好文 时间:
2014-09-03 15:01:46
阅读次数:
255
以前的公司上班上网或者收发邮件都得小心翼翼的,怕一不小心被有心人瞧见,又得被说说。为了能发邮件而不被发现,嘿嘿,我就用python写了个邮件发送程序,用控制台控制,不了解的人一定以为哥还在编程工作呢。哈哈。
下面简单介绍下如何使用python发送邮件,包括普通文本内容,也可以带附件,或者HTML内容的邮件。可以说有了python,一切都变得非常的容易。
...
分类:
编程语言 时间:
2014-09-03 14:59:26
阅读次数:
300
OC第三方框架-AFN的使用//// ViewController.m// AFN断点续传演练//// Created by apple on 13-7-30.// Copyright (c) 2013年 Jackie. All rights reserved.//#import "View...
分类:
其他好文 时间:
2014-09-03 14:55:16
阅读次数:
241
今天给火狐装几个插件,简单介绍下,大家觉得好可以用一、All-in-One Gestures鼠标手势操作,非常棒二、Adblock plus广告已成往事,哈哈三、ColorfulTabsTabs彩色显示,很靓四、NoScript页面Script管理五、DownThemAllFirefox的批量下载工...
分类:
其他好文 时间:
2014-09-03 14:40:46
阅读次数:
149
在处理工作问题的时候需要查看防火墙的日志,由于默认日志都是在系统日志里/var/log/messages里面。需要对rsyslog做设置。首先编辑配置文件/etc/rsyslog.conf如下:# Log all kernel messages to the console.# Logging mu...
分类:
其他好文 时间:
2014-09-03 14:38:16
阅读次数:
179