A.浏览时速度更快 |
B.设计制作更方便 |
C.编辑修改更容易 |
D.浏览时更清晰 |
A.SUM() | B.AVERAGE() | C.MAX() | D.MIN() |
A.椭圆选框工具羽化处理 |
B.矩形选框工具滤镜进行渲染 |
C.磁性套索工具设置图层样式 |
D.魔棒工具羽化处理 |
arr=[7,4,2,13,6,5,3,6,17,1]
for i in range(1,len(arr)):
key=arr[i]
j=i
while :
arr[j]=arr[j-1]
j-=1
A.①③ | B.①④ | C.②③ | D.②④ |
def trans(m,n):
if m!=0 or n!=0:
r=(m%2+n%2)%2
return trans(m//2,n//2)+str(r)
else:
return "0"
a=int(input("a="));b=int(input("b="))
print(trans(a,b))
执行该程序段,依次输入10和7,则输出的结果是( )
A.10110 | B.01011 | C.01101 | D.11010 |
import random
a=[0]*4;i=0
while i<4:
a[i]=int(random.random()*10+1)*2
if i%2==1:
a[i]=a[i]+a[i-1]
elif a[i]%3==0:
i-=1
i+=1
A.2 4 6 8 | B.4 6 2 20 | C.8 10 4 26 | D.10 16 28 40 |
a=[5,14,3,12,6,7,3,9,20,1]
l=min(a);r=max(a)
#min 取列表最小值,max 取列表最大值
maxi=3
while l<=r:
mid=(l+r)//2
cnt=0
for i in a:
if mid < i:
cnt+=1
if cnt < maxi:
r=mid-1
else:
l=mid+1
A.a列表中第3大的数r | B.cnt的值为2 |
C.l的值为12 | D.mid=(l+r)//2代码执行3次 |
Max_temp = 0; Min_temp = 100
while True:
#当进入新的一天 Max_temp 初始化为 0,Min_temp 初始化为 100,代码略
temp = pin1.read_analog()
if
#更新 Max_temp 或 Min_temp 值代码略
errno,resp=Obloq.post("input","{\"id\":\"1\",\"val\":\""+str(temp)+"\"}",10000)
if errno == 200:
if resp == 1:
pin6.write digital(1)
else:
pin6.write digital(0)
else:
display.scroll(str(errno))
sleep(1000)
A .Temp>Max_temp or temp<Min_temp
B .Temp>Max_temp and temp>Min_temp
C .not(temp<=Max_temp and temp>=Min_temp)
D .not(temp>Max_temp and temp>Min_temp)