皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
import语句用于引入模块,详见< >133页到135页,random模块是随机变量生成器,模块名.函数名()可实现对模块中函数的调用,help(random.randint)查出的random.randint(a,b)函数的说明显示:该函数用于随机返回范围[a,b]内的一个整数(包含a和b);引入time模块可实现系统声音相关函数的调用,其中,sleep(c)函数可使系统延时c秒;在自动化测试中,经常需要查找操作文件,比如说查找配置文件(从而读取配置文件的信息),查找测试报告(从而发送测试报告邮件),经常要对大量文件和大量路径进行操作,这就依赖于os模块,其中,getcwd()函数可获得当前文件所在路径,与本待补充的文件同目录下存在文件dumpling.py,该文件对应模块dumpling,文件dumpling.py如下所示: #dumpling.py文件 def make_dumplings(*food_material): i=0 print("dumplings are made with the following original material of food") while i<=len(food_material)-1: print(food_material[i]) i+=1 def show_dumplings_price(price): print("price for 1kg dumplings is ",price," RMB") 补充本文件的下列代码以实现注释的功能: # -*- coding: utf-8 -*- import random as rd from time import * import os from dumpling import make_dumplings from dumpling import show_dumplings_price as sp def main(): #输出10到100之间的整数 1 for i in range(5): print("*",end=" ") #休眠0.5秒 2 #输出当前文件所在路径 3 #调用dumpling模块的make_dumplings函数 4 #调用show_dumplings_price函数 5 main()
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】肾源性水肿的特点是
A.
水肿先从身体低垂的部位开始
B.
水肿先出现在眼睑或颜面部
C.
皮下水肿明显
D.
以胸腔积液为主
【单选题】以下不属于实体—关系模型组成要素的是( )
A.
数据对象
B.
数据流
C.
关系
D.
属性
【单选题】某土样液限 W L =36% ,塑限 W P =21% ,天然含水量 W=26% ,则该土的液性指数 为( )。
A.
0. 15
B.
0.33
C.
0. 67
D.
15
【单选题】以下不属于数据模型组成要素的是
A.
数据结构
B.
数据管理
C.
数据操作
D.
数据的约束条件
【单选题】以下不属于数据模型的组成要素的是()
A.
数据操作
B.
数据结构
C.
数据定义
D.
完整性操作
【判断题】Multimodal transport means the goods are carried by at least two modes of transport under at least two multimodal transport operators.
A.
正确
B.
错误
【判断题】Operator-Precedence parsing cannot handle the unary minus when we have also the binary minus in our grammar. The best approach to solve this problem, let the lexical analyzer handle this problem. The ...
A.
正确
B.
错误
【单选题】肾源性水肿的特点是
A.
颈静脉怒张血
B.
晨起眼睑水肿
C.
凹陷明显
D.
先消瘦,后水肿
E.
胫前粘液性水肿
【判断题】The two & operators in the following statement have the same meanings.Circlecircle1,&circle2=circle1,*p=&circle2;
A.
正确
B.
错误
【多选题】肾源性水肿的特点是
A.
全身水肿(下行性水肿)
B.
水肿首先出现在眼睑与颜面
C.
可伴有低蛋白血症
D.
水肿比较软、移动性大
E.
全身水肿(上行性水肿)
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题