- 博客(4)
- 收藏
- 关注
原创 Python 中调用函数的Docstring
def printmax(x,y): '''You are a girl. don't your.''' x=int(x) y=int(y) if x>y: return x else: return y print printmax(3,5) print printmax.__do
2014-11-06 10:07:39 1152
原创 形参 关键参数
def printmax(x,y=6): if x>y: print 'the maxvalue is ',x else: print 'the maxvalue is ',y printmax(3,4) a=3 b=7 printmax(a,b) printmax(2) printmax(y=3,x=5)
2014-10-30 14:11:10 294
原创 One example for learning "for and while"
Number = 25 running = True while running: Guess = int(raw_input('enter a number:')) if Guess == Number: print "you guess the right value" running = False elif Guess
2014-10-29 15:57:03 216
原创 展现最好的自己
28岁,才渐渐看清自己。 这个博客的目标是能让自己成长为一个技术小牛。 玩了5,6年的硬件,最后还是和测试结缘。希望以后能够在软件方面也能有所进步。 加油,Fight!
2014-10-08 17:02:10 226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人