• 2022-06-09 问题

    补全如下代码,对生成的变量a在1轴上进行降序排列。 1.importpandasaspd 2.importnumpyasnp 3.a=pd.DataFrame(np.arange(20).reshape(4,5),index=['z','w','y','x']) 4.a.____________(axis=1,ascending=False)

    补全如下代码,对生成的变量a在1轴上进行降序排列。 1.importpandasaspd 2.importnumpyasnp 3.a=pd.DataFrame(np.arange(20).reshape(4,5),index=['z','w','y','x']) 4.a.____________(axis=1,ascending=False)

  • 2022-06-04 问题

    请完善如下代码,使得其生成一个3行5列的DataFrame对象。 1.importpandasaspd 2.importnumpyasnp 3.d=pd.DataFrame(np.arange(15).__________(3,5))

    请完善如下代码,使得其生成一个3行5列的DataFrame对象。 1.importpandasaspd 2.importnumpyasnp 3.d=pd.DataFrame(np.arange(15).__________(3,5))

  • 2022-05-27 问题

    importpandasaspd cut1=pd.cut(pd.Series([2,3,1]),[1,2,3],right=False) cut1[1] 输出结果为:() A: (2,3) B: (1,2) C: [1,2) D: NaN

    importpandasaspd cut1=pd.cut(pd.Series([2,3,1]),[1,2,3],right=False) cut1[1] 输出结果为:() A: (2,3) B: (1,2) C: [1,2) D: NaN

  • 2022-06-15 问题

    补全如下代码,打印其中非NaN变量的数量。 1.importpandasaspd 2.importnumpyasnp 3.a=pd.DataFrame(np.arange(20).reshape(4,5)) 4.b=pd.DataFrame(np.arange(16).reshape(4,4)) 5.print((a+b).______())

    补全如下代码,打印其中非NaN变量的数量。 1.importpandasaspd 2.importnumpyasnp 3.a=pd.DataFrame(np.arange(20).reshape(4,5)) 4.b=pd.DataFrame(np.arange(16).reshape(4,4)) 5.print((a+b).______())

  • 2021-04-14 问题

    中国大学MOOC:若已从一个DataFrame对象df中选择了两部分数据(保持数据属性完整)分别存入df1和df2中,代码行如下,请从如下选项中选出可以正确合并这两部分数据的函数/方法补充完整代码。>>>importpandasaspd>>>pd.___________([df1,df2])

    中国大学MOOC:若已从一个DataFrame对象df中选择了两部分数据(保持数据属性完整)分别存入df1和df2中,代码行如下,请从如下选项中选出可以正确合并这两部分数据的函数/方法补充完整代码。>>>importpandasaspd>>>pd.___________([df1,df2])

  • 2022-06-01 问题

    for i in range(b.max_row): for j in range(b.max_column): print(b.cell(row=i,column=j).value)上面语句运行的结果是:__________。 A: 1 1 1 1 1 1 1 1 1 1 B: 1111111111 C: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 D: 出现异常

    for i in range(b.max_row): for j in range(b.max_column): print(b.cell(row=i,column=j).value)上面语句运行的结果是:__________。 A: 1 1 1 1 1 1 1 1 1 1 B: 1111111111 C: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 D: 出现异常

  • 2021-04-14 问题

    【单选题】CDMA通信的基站,假定基站A的码片序列是+1 +1 +1 -1 -1 +1 -1 -1,基站发射bit为101时,实际发射的信号是 A. +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 –1 –1 –1 +1 +1 –1 +1 +1 B. +1 +1 +1 -1 -1 +1 -1 -1 –1 –1 –1 +1 +1 –1 +1 +1 +1 +1 +1 -1 -1 +1 -1 -1 C. +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 D. –1 –1 –1 +1 +1 –1 +1 +1 –1 –1 –1 +1 +1 –1 +1 +1 –1 –1 –1 +1 +1 –1 +1 +1

    【单选题】CDMA通信的基站,假定基站A的码片序列是+1 +1 +1 -1 -1 +1 -1 -1,基站发射bit为101时,实际发射的信号是 A. +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 –1 –1 –1 +1 +1 –1 +1 +1 B. +1 +1 +1 -1 -1 +1 -1 -1 –1 –1 –1 +1 +1 –1 +1 +1 +1 +1 +1 -1 -1 +1 -1 -1 C. +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 +1 +1 +1 -1 -1 +1 -1 -1 D. –1 –1 –1 +1 +1 –1 +1 +1 –1 –1 –1 +1 +1 –1 +1 +1 –1 –1 –1 +1 +1 –1 +1 +1

  • 2022-06-01 问题

    for i in range(1,11): for j in range(1,11): b.cell(row=i,column=j).value=1 #b是一个工作表对象for i in range(1,11): for j in range(1,11): print(b.cell(row=i,column=j).value,end=" ") print()上面程序代码运行的结果是()。 A: 1 B: 1 1 1 1 1 1 1 1 1 1 C: 1111111111 D: 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1

    for i in range(1,11): for j in range(1,11): b.cell(row=i,column=j).value=1 #b是一个工作表对象for i in range(1,11): for j in range(1,11): print(b.cell(row=i,column=j).value,end=" ") print()上面程序代码运行的结果是()。 A: 1 B: 1 1 1 1 1 1 1 1 1 1 C: 1111111111 D: 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1

  • 2022-10-25 问题

    下列哪个码片序列不能用于CDMA通信 A: ( -1 -1 -1 +1 +1 -1 +1 +1 ) B: ( -1 -1 +1 -1 +1 +1 +1 -1 ) C: ( -1 +1 -1 +1 +1 -1 -1 -1 ) D: ( -1 +1 -1 -1 -1 -1 +1 -1 )

    下列哪个码片序列不能用于CDMA通信 A: ( -1 -1 -1 +1 +1 -1 +1 +1 ) B: ( -1 -1 +1 -1 +1 +1 +1 -1 ) C: ( -1 +1 -1 +1 +1 -1 -1 -1 ) D: ( -1 +1 -1 -1 -1 -1 +1 -1 )

  • 2021-04-14 问题

    请仔细观察下面行列式的计算过程,如果四个等号都理解了,请选择A,否则请选择B。 | a 1 1 1 1 | |a+4 a+4 a+4 a+4 a+4| | 1 a 1 1 1 | | 1 a 1 1 1 | | 1 1 a 1 1 |= | 1 1 a 1 1 | | 1 1 1 a 1 | | 1 1 1 a 1 | | 1 1 1 1 a | | 1 1 1 1 a | | 1 1 1 1 1 | | 1 a 1 1 1 | =(a+4) | 1 1 a 1 1 | | 1 1 1 a 1 | | 1 1 1 1 a | | 1 1 1 1 1 | | 0 a–1 0 0 0 | =(a+4) | 0 0 a–1 0 0 | | 0 0 0 a–1 0 | | 0 0 0 0 a–1 | =(a+4)(a–1)^4

    请仔细观察下面行列式的计算过程,如果四个等号都理解了,请选择A,否则请选择B。 | a 1 1 1 1 | |a+4 a+4 a+4 a+4 a+4| | 1 a 1 1 1 | | 1 a 1 1 1 | | 1 1 a 1 1 |= | 1 1 a 1 1 | | 1 1 1 a 1 | | 1 1 1 a 1 | | 1 1 1 1 a | | 1 1 1 1 a | | 1 1 1 1 1 | | 1 a 1 1 1 | =(a+4) | 1 1 a 1 1 | | 1 1 1 a 1 | | 1 1 1 1 a | | 1 1 1 1 1 | | 0 a–1 0 0 0 | =(a+4) | 0 0 a–1 0 0 | | 0 0 0 a–1 0 | | 0 0 0 0 a–1 | =(a+4)(a–1)^4

  • 1 2 3 4 5 6 7 8 9 10