猿问

python中math.pi()是什么意思?

python中math.pi()是什么意思


陪伴而非守候
浏览 6336回答 2
2回答

杨__羊羊

就是圆周率数值用于数学计算死记硬背个圆周率 不是程序员的作风~以下是用法>>> import math>>> math.pi3.141592653589793>>>

眼眸繁星

Python 2.7.2+ (default, Oct 4 2011, 20:03:08)[GCC 4.6.1] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import math>>> math.pi()Traceback (most recent call last):File "<stdin>", line 1, in <module>TypeError: 'float' object is not callable>>> math.pi3.141592653589793>>>
随时随地看视频慕课网APP

相关分类

Python
我要回答