• 2022-07-29 问题

    deffun(x,y):t=xx=yy=tx=0y=1fun(x,y)print(x,y)结果是10

    deffun(x,y):t=xx=yy=tx=0y=1fun(x,y)print(x,y)结果是10

  • 2021-04-14 问题

    下列代码的输出结果是(_____)。deffun():print(0)i=0whilei<3:i+=1yieldix=fun()y=(iforiinx)print(list(y))? [1,2,3]|[0,1,2,3]|0[1,2,3]|0123

    下列代码的输出结果是(_____)。deffun():print(0)i=0whilei<3:i+=1yieldix=fun()y=(iforiinx)print(list(y))? [1,2,3]|[0,1,2,3]|0[1,2,3]|0123

  • 2022-06-09 问题

    以下函数调用错误的是:deffun(a,b=200):returna+b A: print(fun(100)) B: print(fun(100,200)) C: print(fun(b=100,a=200)) D: print(fun())

    以下函数调用错误的是:deffun(a,b=200):returna+b A: print(fun(100)) B: print(fun(100,200)) C: print(fun(b=100,a=200)) D: print(fun())

  • 2022-07-25 问题

    下面关于Python的高级扩展模块说法错误的是(_____)。 A: Flask是Python web开发框架的一种。 B: Pillow是对图像进行操作和处理的一个模块,可以实现缩略图、图像模糊等功能。 C: fromPILimportImage,ImageFilter im=Image.open('test.jpg') im.filter(ImageFilter.BLUR) 运行上述代码后再利用照片浏览器打开test.jpg时已经实现了模糊效果。 D: 运行下述代码后,访问https://127.0.0.1:5000/可以看到返回一行文本:Python is the best language in the world! fromflaskimportFlask app=Flask(__name__) @app.route("/") deffun(): return"Pythonisthebestlanguageintheworld!" if__name__=="__main__": app.run()

    下面关于Python的高级扩展模块说法错误的是(_____)。 A: Flask是Python web开发框架的一种。 B: Pillow是对图像进行操作和处理的一个模块,可以实现缩略图、图像模糊等功能。 C: fromPILimportImage,ImageFilter im=Image.open('test.jpg') im.filter(ImageFilter.BLUR) 运行上述代码后再利用照片浏览器打开test.jpg时已经实现了模糊效果。 D: 运行下述代码后,访问https://127.0.0.1:5000/可以看到返回一行文本:Python is the best language in the world! fromflaskimportFlask app=Flask(__name__) @app.route("/") deffun(): return"Pythonisthebestlanguageintheworld!" if__name__=="__main__": app.run()

  • 1