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