Sth about Python 04---Module &am

2015-05-20  本文已影响13人  feng_Zi

#import math

import math
print math.sqrt(13689)

#Built-In Functions

def distance_from_zero(s):

 if type(s) == int or type(s) == float:
     return abs(s)
 else:
     return 'Nope'

上一篇 下一篇

猜你喜欢

热点阅读