首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面代码的输出结果县 x=3.1415926 print(round(x,2),round(x))
下面代码的输出结果县 x=3.1415926 print(round(x,2),round(x))
admin
2019-08-30
14
问题
下面代码的输出结果县
x=3.1415926
print(round(x,2),round(x))
选项
A、3.14 3
B、3 3.14
C、2 2
D、6.28 3
答案
A
解析
round(x[,ndigits])函数对x四舍五入,保留ndigits位小数。
转载请注明原文地址:https://kaotiyun.com/show/bP6p777K
本试题收录于:
二级Python题库NCRE全国计算机二级分类
0
二级Python
NCRE全国计算机二级
相关试题推荐
下面对视图的描述中错误的是
下面关于算法的叙述中,正确的是()。
下面关于数据环境和数据环境中两个表之间关联的叙述中,正确的是()。
(1)使用一对多表单向导新建一个表单sportform。要求:使用“国家”为父表并选择“国家名称”字段作为显示字段,“获奖牌情况”为子表并选择“项目名称”和“名次”字段作为显示字段,使用“国家代码”建立表之间的关系,表单样式选择“阴影式”,按钮类型选择“
在考生文件夹下完成下列操作:(1)用命令新建一个名为“外汇”的数据库,并将该命令存储于one.txt中。(2)将自由表“外汇汇率”、“外汇账户”、“外汇代码”加入到新建的“外汇”数据库中。(3)用SQL语句在“外汇”数据库中新建一个数据库表rate,
(1)用SQL语句进行以下查询:查询“外汇账户”表中的日元信息。查询结果包括钞汇标志、金额,结果按金额降序排序,并存储于表two.dbf中,并将SQL语句存储于新建的three.txt文件中。(2)用一对多报表向导建立报表,“外汇代码”表为父表,“外汇账
(1)编写程序three.prg完成下列操作:根据“外汇汇率”表中的数据产生rate表中的数据。要求:将所有“外汇汇率”表中的数据插入rate表中并且顺序不变,由于“外汇汇率”中的“币种1”和“币种2”存放的是外币名称,而rate表中的“币种1代码”和“
随机试题
A、呕大量鲜血,可伴有血块B、强烈呕吐,先胃液后鲜血与血块C、柏油便伴腹痛、寒战、高热与黄疸D、柏油样便E、鲜血样便贲门胃底黏膜撕裂综合征(MaUorv.Weisssyndrome)可有
患者,男性,60岁。右侧腹股沟斜疝,用力排便时突然疝块增大,明显疼痛,平卧或用手推不能回纳,肿块紧张发硬,有明显触痛,考虑为
按近代量子力学的观点,核外电子运动的特征:
整个建设项目竣(交)212验收期间质量监督机构进行工程质量检测所需的费用由()承担。
股份有限公司董事的任期由()。
下列固定资产应计提折旧的有()。
房地产法的调整对象有()。
供应链管理是以同步化、集成化生产计划为指导,以各种技术为支持,尤其以Internet/Intranet为依托,围绕供应、生产作业、物流(主要指制造过程)、满足需求来实施的。()
如图谱例出自古典主义时期的《小夜曲》,其作曲家是()。
1.2010年7月5日凌晨,沪陕高速蓝田段发生一起重大交通事故,一辆印有“司法”字样的制式警车与路边一辆大货车追尾,造成警车上3死1伤。经调查,车祸发生时,驾驶警车的司机是商洛市商州区司法局局长的儿子,其在车祸中当场身亡,车上死者和伤者都是同学朋友关系。
最新回复
(
0
)