CM Backup高速開發暫緩了一下,有機會寫一下這段時間以來都幹了些什麼(我總感覺老闆覺得我很清閒,但真的忙趴了)。今晚就不作什麼大總結了,針對一個問題談點心事。
項目需要,用到了Amazon的服務,自然python也就用到了boto(想着不用boto的就不用往下看了,因爲你什麼輪子都自己動手,也沒有所謂的再封裝了)。
用到了boto,然後項目不斷地變大,調用...
分类:
其他好文 时间:
2014-07-23 00:01:57
阅读次数:
237
BeyondViewController.h
//
// BeyondViewController.h
// 01_calc
//
// Created by beyond on 14-7-20.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewCon...
分类:
移动开发 时间:
2014-07-22 23:50:27
阅读次数:
349
Python的print函数输出中文字符串对齐问题的解决方案。...
分类:
编程语言 时间:
2014-07-22 23:49:57
阅读次数:
380
BeyondViewController.h
//
// BeyondViewController.h
// 02_按钮控制物体形变
//
// Created by beyond on 14-7-21.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewC...
分类:
移动开发 时间:
2014-07-22 23:49:47
阅读次数:
330
BeyondViewController.h
//
// BeyondViewController.h
// 03_图片浏览
//
// Created by beyond on 14-7-22.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewContr...
分类:
移动开发 时间:
2014-07-22 23:49:37
阅读次数:
345
安装好Debian后,默认只有su命令可用,还不能使用sudo如果没有安装sudo,则在root用户下apt-get install sudo设置sudoers配制文件vim /etc/sudoers在root的下一行添加一行username ALL=(ALL) ALL #其中use...
分类:
其他好文 时间:
2014-07-22 23:38:57
阅读次数:
337
机器学习新手,接触的是《机器学习实战》这本书,感觉书中描述简单易懂,但对于python语言不熟悉的我,也有很大的空间。今天学习的是k-近邻算法。 1. 简述机器学习 在日常生活中,人们很难直接从原始数据本身获得所需信息。而机器学习就是把生活中无序的数据转换成有用的信息。例如,对于垃圾邮件的检...
分类:
编程语言 时间:
2014-07-22 23:37:57
阅读次数:
366
python中执行obj.attr时,将调用特殊方法obj.__getattribute__('attr'),该方法执行搜索来查找该属性,通常涉及检查特性、查找实例字典、查找类字典以及搜索基类。如果搜索过程失败,最终会尝试调用类的__getattr__()方法。如果这也失败,则抛出Attribute...
分类:
编程语言 时间:
2014-07-22 23:36:47
阅读次数:
261
1. 基本语法isinstance(object,classinfo)Return true if theobjectargument is an instance of theclassinfoargument, or of a (direct, indirect orvirtual) subcl...
分类:
编程语言 时间:
2014-07-22 23:29:17
阅读次数:
293
python内置的描述符python有些内置的描述符对象,property、staticmethod、classmethod,python实现如下:class Property(object): def __init__(self,getf,setf,delf,doc): sel...
分类:
编程语言 时间:
2014-07-22 23:21:47
阅读次数:
335