[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fPMhJeB6mIBYz683nasgC6HLiD5glPC30tHzXd-4lzxk":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":29,"type":30},[],"2024-05-27 01:39:53",135279285,[8,9,10,11],"file","openfile","fopen","open",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},123,"03884b753fff8f8cbfe273aaf579d5b2","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fcd6aa804f56468e1fa7bc4a2057046b9.png","Python程序设计","work_33332100","9.文件和数据格式化","在读写文件之前,打开文件使用的函数是______.‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪",[21,31,41,51,61,70,73,83,92,102],{"answer":22,"createTime":23,"id":24,"options":25,"question":28,"source":29,"type":30},[],"2024-04-23 21:30:44",135279264,[26,8,27,11],"folder","create","在读写文件之前,用于创建文件对象的函数是( )","v1",0,{"answer":32,"createTime":33,"id":34,"options":35,"question":40,"source":29,"type":30},[],"2024-03-23 20:29:12",135279268,[36,37,38,39],"如果 x 是 s 的元素,x in s 返回 True","如果 x 不是 s 的元素,x not in s 返回 True","如果 s 是一个序列,s = [1,&quot;kate&quot;,True],s[3] 返回 True","如果 s 是一个序列,s = [1,&quot;kate&quot;,True],s[&ndash;1] 返回 True","关于 Python 序列类型的通用操作符和函数,以下选项中描述错误的是‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪",{"answer":42,"createTime":43,"id":44,"options":45,"question":50,"source":29,"type":30},[],"2024-05-07 09:08:22",135279271,[46,47,48,49],"abama 4822023","Arkansas 2949131","无输出内容","Alaska 731449","文件data.csv里的内容如下:‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪ Alabama 4822023 Alaska 731449 Arizona 6553255 Arkansas 2949131 以下程序的输出结果是:‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪ with open('data.csv', 'r') as f: f.seek(2) ts = f.readline() print(ts)",{"answer":52,"createTime":53,"id":54,"options":55,"question":60,"source":29,"type":30},[],"2024-03-23 20:29:13",135279276,[56,57,58,59],"'春眠' '处处' '夜来'","春眠 处处 夜来","春眠处处夜来","'春眠''处处''夜来'","以下程序输出到文件 a.txt 里的结果是______.‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪ fo=open(&quot;a.txt&quot;,'w') x=['春眠','处处','夜来'] fo.writelines(x) fo.close()‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪",{"answer":62,"createTime":5,"id":63,"options":64,"question":69,"source":29,"type":30},[],135279280,[65,66,67,68],"在D盘当前文件夹下建立ppp文件夹","在D盘根文件夹下建立ppp文件夹","在D盘当前文件夹下建立ppp文本文件","在D盘根文件夹下建立ppp文本文件","下列语句的作用是( ). &gt;&gt;&gt; import os &gt;&gt;&gt; os.mkdir(&quot;d:\\\\ppp&quot;)",{"answer":71,"createTime":5,"id":6,"options":72,"question":19,"source":29,"type":30},[],[8,9,10,11],{"answer":74,"createTime":75,"id":76,"options":77,"question":82,"source":29,"type":30},[],"2024-03-23 20:29:17",135279291,[78,79,80,81],"write","writeall","seek","writetext","在 Python 语言中,写文件的操作是______.‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪",{"answer":84,"createTime":75,"id":85,"options":86,"question":91,"source":29,"type":30},[],135279293,[87,88,89,90],"JSON 格式可以表示比二维数据还复杂的高维数据","列表的索引值是大于 0 小于列表长度的整数","csv 文件既能保存一维数据,也能保存二维数据","二维数据可以看成是多条一维数据的组合形式","以下关于数据维度的描述,错误的是______.‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪",{"answer":93,"createTime":94,"id":95,"options":96,"question":101,"source":29,"type":30},[],"2024-05-06 23:47:23",135279295,[97,98,99,100],"this is a test","this is a test+hello","this is a test hello","this is a test,hello","以下程序的输出结果是: fo = open(&quot;texttxt&quot;,'w+') x,y ='this is a test','hello' fo.write('{}+{}\\n'format(x,y)) print(fo.read()) fo.close()",{"answer":103,"createTime":104,"id":105,"options":106,"question":111,"source":29,"type":30},[],"2024-03-23 20:29:18",135279297,[107,108,109,110],"Python 组合数据类型能够将多个同类型或不同类型的数据组织起来,通过单一的表示使数据操作更有序、更容易","Python 的 str、tuple 和 list 类型都属于序列类型","序列类型是二维元素向量,元素之间存在先后关系,通过序号访问","组合数据类型可以分为 3 类:序列类型、集合类型和映射类型","关于 Python 组合数据类型,以下选项中描述错误的是"]