Chinaunix首页 | 论坛 | 博客
  • 博客访问: 305630
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

发布时间:2011-11-30 19:43:10

struct Derived:Base{       Derived(int i):mem(i) {}       int get_mem() { return Base::mem;}private:        int mem;};int main(){    Derived d(43);     int resu.........【阅读全文】

阅读(207) | 评论(0) | 转发(0)

发布时间:2011-11-30 13:46:34

#include <iostream>using namespace std;  struct Base {   static void statmem() {}}; struct Derived:Base {   void f(const Derived &);}; void Derived::f(const Derived &derived_obj).........【阅读全文】

阅读(401) | 评论(0) | 转发(0)

发布时间:2011-11-30 10:59:44

>>> str1='Bruce.Lee'>>> lis1=list(str1)>>> lis1['B', 'r', 'u', 'c', 'e', '.', 'L', 'e', 'e']>>> tmp1=reduce((lambda x,y:x+y),lis1)>>> tmp1'Bruce.Lee'>>> tmp2=''.join(lis1)>>> tmp2'Bruce.Lee'>>> ......【阅读全文】

阅读(256) | 评论(0) | 转发(0)

发布时间:2011-11-30 10:44:34

#coding:gbkdef P_cardid_check(identityNo):    '''    @组件名称: 身份证件号码校验    @组件风格: 判断型    @组件类型: 横向参数模块    @中文注释: 判断15/18位的身份证号码是否合法    @入参:  &nbs.........【阅读全文】

阅读(525) | 评论(0) | 转发(0)

发布时间:2011-11-30 10:26:26

#coding:gbks1=[1,2,3,4,5]s2=[11,12,13,14,15]m=map(lambda x,y:x+y,s1,s2)print "type(m) is:",type(m)print "m=",ms=[1,2,3,4,5]sum=reduce((lambda x,y:x+y),s)print "type(sum) is:",type(sum)print "sum=",sum 运行结果:type(m) is: <type 'list'>m= [12, 14, 16, 18, 20]type(.........【阅读全文】

阅读(283) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册