if f==0 and s[j-1]<s[j]: # 从初始状态进入上升段
f=1
f=2
print(s[i:j])
if s[j-1]<s[j]:
f=1;
else:
f=0;
elif s[j-1]==s[j] or f==0 and s[j-1]>s[j]: # 进入初始状态
f=0; i=j
j+=1
print(s[i:j])
A.①i=j②f!=2 | B.①i=j②f==2 | C.①i=j+1②f!=2 | D.①i=j+1②f==2 |
![]() | ![]() |
图 a | 图 b |
s=df. at[i,'时间'] #获取该行的时间数据
t1=int(s[3:5]) #获取分钟数据
t=( ①
if t>=15:
time. append(df. at[i,'时间'])
temp. append(df. at[i,'温度'])
p=t1
f=open("buy. csv")
n=len(lst)
money=0
for i in f. readlines():
s=list(i. split(','))
A.①1,n ②0,n-i-1 | B.①0,n-1 ②0,n-i |
C.①1,n ②n-2,i-1,-1 | D.①0,n-1 ②n-2,i-1,-1 |
A."00101" | B."10101" | C."10100" | D."01001" |
A."nUYay10" | B."nUYay01" | C."nay01YU" | D."nay01" |
A.分号 | B.冒号 | C.缩进 | D.大括号 |