首页->python程序设计
已知x = ‘hellow world.’.encode(),那么表达式x.decode(‘gbk’)的值为’hellow world.’。
(A)对
(B)错
参考答案
![微考学堂](/images/gzh.png)
更多python程序设计试题
- 1s = “the sky is blue”,表达式 print(s[-4:], s[:-4]) 的结果是:、
- 2Python字典中的“键”可以是元组。
- 3已知x = list(range(20)),那么表达式x[-1]的值为__________。
- 4假设列表对象aList的值为[3, 4, 5, 6, 7, 9, 11, 13, 15, 17],那么切片aList[3:7]得到的值是____________。
- 5对元组做如下操作:(1, 2, 3) + (4, 5, 6),请问结果是( )