更多Python应用师试题
- 1可以使用内置函数( )看包含当前作用域内所有全局变量和值的字典。
- 2表达式 list(str([1,2,3])) == [1,2,3] 的值为( )。
- 3下面代码的输出结果是( )。 str1 = "mysqlsqlserverPostgresQL" str2 = "sql" ncount = str1.count(str2) print(ncount)
- 4下面代码的输出结果是( )。 s1 = "The python language is a scripting language." s2 = s1.replace('scripting','general') print(s2)
- 5下面代码的输出结果是( )。 x=0b1010 print(x)