MIP.watch('count', function (newVal, oldVal) { fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=126919&type=2') .then(function (res) { var follows2 = MIP.getData('follows') if(follows2==1){ MIP.setData({ follows:2, title:'收藏' }) } if(follows2==2){ console.log(2) MIP.setData({ follows:1, title:'已收藏' }) } }) .catch(function (err) { console.log('数据请求失败!') }) })

设str='python',想把字符串的第一个字母大写,其他字母还是小写,正确的选项是:

A、print(str[0]upper()+str[1:])
B、print(str[1]upper()+str[-1:1])
C、print(str[0]upper()+str[1:-1])
D、print(str[1]upper()+str[2:])
查看答案
正确答案:

A

答案解析:

暂无解析

上一题
你可能感兴趣的试题

已知id(ls1)=4404896968,以下程序的输出结果是:

ls1=[1,2,3,4,5]

ls2=ls1

ls3=ls1.copy()

print(id(ls2),id(ls3))

A、44048969684404896904
B、44048969044404896968
C、44048969684404896968
D、44048969044404896904

请分别说明Python中正则表达式、lambda函数、装饰器、异常处理、断言处理各自的用途。

以下程序的输出结果是:

deffun1(a,b,*args):

print(a)

print(b)

print(args)

fun1(1,2,3,4,5,6)

A、12[3,4,5,6]
B、1,2,3,4,5,6
C、123,4,5,6
D、12(3,4,5,6)

以下关于循环结构的描述,错误的是:

A、遍历循环使用forin语句,其中循环结构不能是文件
B、使用range()函数可以指定for循环的次数
C、foriinrange(5)表示循环5次,i的值是从0到4
D、用字符串做循环结构的时候,循环的次数是字符串的长度

以下选项错误描述的是

A、DDL是数据定义语言
B、DML是数据操纵语言
C、DCL是数据控制语言
D、DBMS是数据库系统
热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计