1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # -*- coding: utf-8 -*- olt = [ 83 , 78 , 84 , 81 ] tat = [ 85 , 90 ] fit = [ 85 ] s1 = (olt[ 0 ] + olt[ 1 ] + olt[ 2 ] + olt[ 3 ])\ * 0.1 s2 = (tat[ 0 ] + tat[ 1 ]) * 0.15 s3 = fit[ 0 ] * 0.3 print (s1 + s2 + s3) #if else number = 7 if number < 10 : print ( "ture" ) else : print ( "false" ) #for for i in range ( 0 , 3 ): print ( "Number:%d" % (i)) |
2011年9月14日 星期三
基礎Python
Coding format FYI:http://www.python.org/dev/peps/pep-0263/
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言