单选题 已知字符串编码格式utf-8使用3个字节表示一个汉字、1个字节表示一个英语字母,那么表达式len('hello中国')的值为( )。
相关试题
单选题 关于Python类说法错误的是( )。
单选题 已知x = dict(zip([1,2,3],[10,20,30])),表达式 x.get(2,99)的值为( )。
单选题 下列选项中,用于向文件中写入数据的是( )。
单选题 表达式 'This is a test'.startswith('Th',1)的值为( )。
单选题 print('{b},{c},{b}'.format(a=1,b=2,c=3))的输出结果为( )。
单选题 已知字符串 x = 'I like bozhou,I like china',那么执行语句 x.replace('like','love',1)之后,
X的值为( )。
单选题 语句x,y = 3>5,5执行结束后,变量x的值为( )。
单选题 已知函数定义def demo():return lambda x,y=10:x+y,那么表达式demo()(5)的值为( )。