以下程序输出到文件textcsv里的结果是: fo=open(“textcsv”,‘w’) x=[90,87,93] z=[] foryinx: z.append(str(y)) fo.write(","join(z)) fo.close()
A: [90,87,93]
B: 90,87,93
C: ‘[90,87,93]’
D: ‘90,87,93’
A: [90,87,93]
B: 90,87,93
C: ‘[90,87,93]’
D: ‘90,87,93’
举一反三
- 以下程序输出到文件textcsv里的结果是: fo = open(“textcsv”,‘w’) x = [90,87,93] z = [] for y in x: z.append(str(y)) fo.write(","join(z)) fo.close()
- 以下程序输出的文件中,内容为()fo = open("text.csv", 'w') x = [ [90, 87, 93], [87, 90, 89], [78, 98, 97]] b = [] for a in x: for aa in a: b.append(str(aa)) fo.write(",".join(b)) fo.close() A: 90,87,93,87,90,89,78,98,97 B: [[90,87,93],[87,90,89],[78,98,97]] C: [90,87,93,87,90,89,78,98,97] D: 90,87,93 87,90,89 78,98,97
- 以下程序输出到文件text.csv里的结果是: fo=open("text.csv",'w') x=[90,87,93] fo.write(",".join(str(x))) fo.close() A: [90,87,93] B: 90,87,93 C: ,9,0,,,,8,7,,,,9,3, D: [,9,0,,,,8,7,,,,9,3,]
- PAR%为()。 A: 93% B: 95% C: 90% D: 87% E: 28%
- 目前亚投行共有个()成员国。 A: 87 B: 90 C: 93 D: 96