如果想要查看math库中pi的取值是多少,可以利用以下什么方式(假设已经执行了import math,并且只要包含pi取值就可以)?
A.help(math)
B.print(pi)
C.dir(math)
D.print(math.pi)
- · 有3位网友选择 C,占比37.5%
- · 有3位网友选择 B,占比37.5%
- · 有1位网友选择 D,占比12.5%
- · 有1位网友选择 A,占比12.5%
A.help(math)
B.print(pi)
C.dir(math)
D.print(math.pi)
A、apples = 100 while True: if apples < 9: break print("rest apples are less than 9") apples -= 9
B、apples = 100 while True: if apples < 9: continue print("rest apples are less than 9") apples -= 9
C、apples = 100 while apples >= 1: if apples < 9: print("rest apples are less than 9") break apples -= 9
D、apples = 100 for a in reversed(xrange(apples)): if a < 9: print("rest apples are less than 9") continue apples -= 9
A、程序的运行结果为10和7。
B、程序的运行结果为10和5。
C、程序的运行结果为8和5。
D、程序不能正常执行。
A、8
B、9
C、10
D、11
A、IndexError
B、ValueError
C、TypeError
D、NameError
A、9和27
B、-9和27
C、9和-27
D、-9和-27
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!