答案:with open("静夜思.txt", 'r', encoding='utf-8') as file:for line in file:print(line.strip())
答案:with open("静夜思.txt", 'r', encoding='utf-8') as file:for line in file:print(line.strip())
A. function
B. func
C. def
D. procedure
A. 对
B. 错
A. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls + lstprint(lsⱣⱤnew)
B. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(lsⱣⱤnew)
C. ls = [25, 13, 36, 1]lst = [88]ls.extend(lst)print(ls)
D. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(ls)
A. frame[['ID']].groupby(frame('gender')).count().sortⱣⱤvalues(by=('gender'))
B. frame[['ID']].groupby(['gender']).count().sortⱣⱤvalues(by=frame['gender'])
C. frame[['ID']].groupby(('gender')).count().sortⱣⱤvalues(by=frame('gender'))
D. frame[['ID']].groupby(frame['gender']).count().sortⱣⱤvalues(by=['gender'])
解析:答案解析:
A. y = x + 1if x >= 0:if x == 0:y = xelse:y = x-1
B. y = x - 1if x! = 0:if x > 0:y = x + 1else:y = x
C. if x <= 0:if x < 0:y = x - 1else:y = xelse:y = x+1
D. y = xif x <= 0:if x < 0:y = x - 1else:y = x + 1
A. 列表
B. 元组
C. 字典
D. 数据框
A. pop()
B. append()
C. remove()
D. clear()
A. ls = [25, 13, 36, 1]ls.remove(13)print(ls)
B. ls = [25, 13, 36, 1]ls.pop(1)print(ls)
C. ls = [25, 13, 36, 1]ls.clear(13)print(ls)
D. ls = [25, 13, 36, 1]ls=[ls[0]]+ls[2:]print(ls)