摘要: #使用DocStringsdef printMax(x,y): x=int(x)#convert to integers,if possible y=int(y) if x>y: print x,'is maximum' else: print y,'is maximum'printMax(3,5)print printMax#使用sys模块import sysprint 'The command line arguments are:'for i in sys.argv: print iprint '\n\n the python 阅读全文
posted @ 2013-09-22 23:13 ilxx1988 阅读(319) 评论(0) 推荐(1) 编辑