正在加载图片...
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Examples printParity (x) no yes X%2==0 print x,"is odd" print x,"is even" def printparity(x): ifx号2==0: print x,"is even" else: print x,"is odd< printparity() 10Examples 10 def printParity(x): if x%2 == 0: print x, "is even" else: print x, "is odd« printParity()
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有