
perl
偶像罗斯福
从事手机游戏事业十多年,欢迎大家交流探讨
展开
-
【perl】散列表的遍历
my %hash;$hash{"objA"}{"size"}="ewr";$hash{"objA"}{"width"}="werwer";$hash{"objB"}{"size"}="ewasdr";$hash{"objB"}{"width"}="werweasdr";foreach my $k (grep {/^obj/} keys %hash) { print $k原创 2014-03-15 05:40:07 · 1295 阅读 · 0 评论 -
面向对象简单解释
继承{1,2,3}{1,2,3,4,5}class foo(object): def __init__(self, arg) self.a = 100; def doAction(self, arg1, arg2) self.b = arg1 self.c = arg2class child(foo): def __init_原创 2017-11-17 14:08:07 · 496 阅读 · 0 评论