MIP.watch('count', function (newVal, oldVal) { fetch('http://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=30926&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('数据请求失败!') }) })

以下关于函数的描述,错误的是:

A、函数是一种功能抽象
B、使用函数的目的只是为了增加代码复用
C、函数名可以是任何有效的Python标识符
D、使用函数后,代码的维护难度降低了
查看答案
正确答案:

B

答案解析:

暂无解析

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

请用Python语言编写一个简易的系统登录程序。

表达式 eval('500/10') 的结果是:

A、‘500/10’
B、500/10
C、50
D、500

以下程序的输出结果是:

deftest(b=2,a=4):

globalz

z+=a*b

returnz

z=10

print(z,test())

A、18None
B、1018
C、UnboundLocalError
D、1818

一些重要的程序语言(如C语言和Pascal语言)允许过程的递归调用。而实现递归调用中的存储分配通常用

A、栈
B、堆
C、链表
D、数组

以下程序的输出结果是:

img1 = [12,34,56,78]

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

def displ():

print(img1)

def modi():

img1 = img2

modi()

displ()

A、([1,2,3,4,5])
B、[12,34,56,78]
C、([12,34,56,78])
D、[1,2,3,4,5]
热门试题 更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计