- 博客(5)
- 收藏
- 关注
原创 Python - 条件表达式(三元操作符)
通过三元操作符的条件表达式用一条语句来完成以下的条件判断和赋值操作:x , y = 3 , 5if x < y : small = xelse: small = y可以更写为:small = x if x < y else y...
2020-03-09 21:33:49
467
原创 Python : 使用Lassie两行代码检索页面内容
import lassielassie.fetch('https://www.ctolib.com/lassie.html')输出:import lassie...{'images': [{'src': 'https://www.ctolib.com/static/favicon.ico', 'type': 'favicon'}], 'videos': [], 'descri...
2020-03-06 16:34:35
315
原创 Python : 使用Pillow模块(加载、查看属性、显示)图片
from PIL import Image#打开一个jpg文件,注意是当前路径:im = Image.open('E:\\c4dWORK\\2.jpg')#使用实例属性检查文件内容print(im.format,im.size,im.mode)#显示图像im.show()输出:JPEG (1920, 1908) RGBPIL模块中最重要的类 Image,创建Image...
2020-03-05 17:18:39
4623
1
原创 cmd : md命令创建多子集目录
C:\Windows\System32>F:F:>mkdir 3\4\5F:>rd /s 33, Are you sure (Y/N)? YF:>pushd E:E:>popdF:>
2020-03-04 14:25:39
1344
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人