已知path=r’c:/test.html’,那么表达式path[:-4]+’htm’的值为()。
第1题:
已知f=lambdax:5,那么表达式f(3)的值为_____________。
第2题:
A.The path of the packets will be R3 to R2 to R1.
B.The path of the packets will be R3 to R1 to R2.
C.The path of the packets will be both R3 to R2 to R1 and R3 to R1.
D.The path of the packets will be R3 to R1
第3题:
已知整型变量i,j的值为1,2;布尔型变量m,n的值为true,false,那么表达式NOT(i>j)AND false 0R(m=n)的值为()
第4题:
已知x={’a’:’b’,’c’:’d’},那么表达式’a’inx的值为()。
第5题:
已知x=(3,),那么表达式x*3的值为()。
第6题:
已知x=[3,2,3,3,4],那么表达式[index for index,value in enumerate(x)if value==3]的值为()。
第7题:
已知x=range(1,4)和y=range(4,7),那么表达式sum([i*jfori,jinzip(x,y)])的值为()。
第8题:
已知x={1:2,2:3},那么表达式x.get(3,4)的值为()。
第9题:
如何查看PATH变量的值?()
第10题:
0
1
true
false
第11题:
第12题:
第13题:
A.Right-clickthefolder>Properties>Securitytab>selecttheusernamefromthelist>Permissions>cleartheboxlabeledRead>OK
B.Openthefolder>Tool>FolderOptions>Generaltab>Read-only>OK
C.OpentheCommandPrompt>typeattribr[drive:][path]>Enter
D.OpentheCommandPrompt>typeattrib+r[drive:][path]>Enter
E.Right-clickthefolder>Properties>Generaltab>Attributes>selectRead-only>OK
第14题:
A.错误
B.正确
第15题:
已知x={’a’:’b’,’c’:’d’},那么表达式’b’inx的值为()。
第16题:
已知有函数定义defdemo(*p):returnsum(p),那么表达式demo(1,2,3)的值为()、表达式demo(1,2,3,4)的值为()。
第17题:
已知x=[3,3,4],那么表达式id(x[0])==id(x[1])的值为()。
第18题:
已知x=list(range(20)),那么表达式x[-1]的值为()。
第19题:
已知x={1:2,2:3,3:4},那么表达式sum(x.values())的值为()。
第20题:
假设已成功导入os和sys标准库,那么表达式os.path.dirname(sys.executable)的值为Python安装目录。
第21题:
以下对PATH的认识正确的是().
第22题:
第23题:
对
错