登录
注册
首页
->
Python练习题
下载题库
下列函数中,可以将数值类型转换为字符串的是( )。
(A)complex()
(B)int()
(C)float()
(D)str()
参考答案
继续答题:
下一题
更多Python练习题试题
1
Python 语言中,定义一个空集数据对象,正确的是()。
2
以下程序的输出结果是( )ls =list("the sky is blue") a = ls.index(s,5,10) print(a)
3
下面代码的执行结果是( )。a="Python等级考试"、b="="、c=">"、print("{0:{1}{3}{2}}".format(a,b,25,c))
4
以下选项不属于程序设计语言类别的是( )。
5
已知字符串 x = hello Python,那么执行语句 x.replace(hello, hi) 之后,x的值为____________。
考试