码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
python3 -> 函数注释 Function Annotations
Python 3.X新增加了一个特性(Feature),叫作函数注释 Function Annotations 它的用途虽然不是语法级别的硬性要求,但是顾名思义,它可做为函数额外的注释来用。 Python中普通的函数定义如下: def func(a, b, c): return a + b + c >>> func(1, 2, 3) 6 添加了函数注释的函数会变成如下形式...
分类:编程语言   时间:2014-07-28 16:05:23    阅读次数:251
python -> lambda与def的区别
lambda可以定义一个匿名函数,而def定义的函数必须有一个名字。这应该是lambda与def两者最大的区别。 与Javascript不同的是,python中匿名函数与非匿名函数需要使用不同的语法来定义。这是因为: lambda是一个expression,不是一个statement。 lambda is an expression, not a statement. ...
分类:编程语言   时间:2014-07-28 16:00:23    阅读次数:305
iOS_12_tableViewCell的删除更新_红楼梦
最终效果图: Girl.h // // Girl.h // 12_tableView的增删改 // // Created by beyond on 14-7-27. // Copyright (c) 2014年 com.beyond. All rights reserved. // #import @interface Girl : NSObject // U...
分类:移动开发   时间:2014-07-28 16:00:13    阅读次数:317
hdu1150Machine Schedule (二分匹配,最小顶点覆盖)
Problem Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Scheduling problems differ widely in the nature of...
分类:其他好文   时间:2014-07-28 15:47:03    阅读次数:308
iOS_13_tableView的编辑模式_红楼梦
最终效果图: Girl.h // // Girl.h // 12_tableView的增删改 // // Created by beyond on 14-7-27. // Copyright (c) 2014年 com.beyond. All rights reserved. // #import @interface Girl : NSObject // UI控...
分类:移动开发   时间:2014-07-28 15:43:43    阅读次数:358
Sublime Text2配置python环境
1.下载python并安装 地址:https://www.python.org/downloads/2.下载Sublime Text2 并安装 地址:http://www.sublimetext.com/3.安装插件Package Control在 Sublime 里直接安装附加插件的包管理器。.....
分类:编程语言   时间:2014-07-28 15:35:33    阅读次数:367
搜集的几个学习网站
1、http://www.xuexi111.com/s/cyvyan/2、http://www.oschina.net/p/my-smart-home3、http://see.xidian.edu.cn/cpp/view/6994.html4、http://eyehere.net/2011/pyth...
分类:Web程序   时间:2014-07-28 15:32:03    阅读次数:212
Linux [文本处理]
cut -- 将行根据需求分成指定的片段常用参数:-d 以。。。为分割符 -d: 以:分割行(类似于python中的split)-f 得到分割后的某个列 -f1-3 得到分割后的第1个到第3个列 (即1,2,3列,这里面是从1开始的,而不是0)-c 指定位置字符 -c1 得到行的第一个字符grep....
分类:系统相关   时间:2014-07-28 15:23:23    阅读次数:234
linux常用命令整理
1. 如何将用户添加到sudoer列表中:chmod +w /etc/sudoers echo 'mirandam ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers chmod -w /etc/sudoers exit 2. For循环的例子:// 压缩当前目录下所有后...
分类:系统相关   时间:2014-07-28 15:21:13    阅读次数:255
关于神经网络算法的 Python例程
# Back-Propagation Neural Networks# # Written in Python. See http://www.python.org/# Placed in the public domain.# Neil Schemenauer import mathimport ...
分类:编程语言   时间:2014-07-28 15:05:53    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!