
Lv.1
harder better faster stronger. | LIT副室长
签名:Simplay和JokerVG的狂热粉丝一枚!
在 【“编程猫圣诞新星”——无礼物,不圣诞】 中回复

from PIL import Image
import matplotlib.pyplot as plt
img = Image.open('bcm.jpg')
print(img.format, img.size)
_, axes = 2, 4
axes[0][0].imshow(img)
axes[0][0].set_title('original')
_img = img.copy()
newsize = (50,50)
_img.thumbnail(newsize)
axes[0][1].imshow(_img)
axes[0][1].set_title('thumbnail')
newsize = (50,150)
img_resize = img.resize(newsize)
axes[0][2].imshow(img_resize)
axes[0][2].set_title('resize')
img_crop = img.crop((0,0,img.width//2,img.height//2))
axes[0][3].imshow(img_crop)
axes[0][3].set_title('crop')
img_rotate = img.rotate(45)
axes[1][0].imshow(img_rotate)
axes[1][0].set_title('rotate')
img_rotate_2 = img.rotate(45,expand=True)
axes[1][1].imshow(img_rotate_2)
axes[1][1].set_title('rotate_expand')
img_flip_left_right = img.transpose(Image.FLIP_LEFT_RIGHT)
axes[1][2].imshow(img_flip_left_right)
axes[1][2].set_title('rotate_horizontal')
img_flip_top_bottom = img.transpose(Image.FLIP_TOP_BOTTOM)
axes[1][3].imshow(img_flip_top_bottom)
axes[1][3].set_title('rotate_vertical')
plt.show()
2020-12-18T21:03:22 点赞:4
在 【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复
今天真的特别生气。我做了一个小时的作品,以为它自动保存了,结果谁知尽然没有保存,关掉以后啥也没了,真心希望每分钟自动保存一次,真的是太生气了!!!!!!!!!!!
2021-07-05T08:46:01 点赞:0
在 想做一个DOS,不删除记录重启功能(输入rebooting启动)出了点bug,求大佬看下 中回复
这边有个类似的作品:https://shequ.codemao.cn/work/104157202(神射手赞)
还有相应的函数:

2021-07-09T15:13:19 点赞:0
在 微集团聊天区(app工匠) 中回复
https://appcraft.codemao.cn/?workId=108968202,有时间可以修改一点,挺好用的,加油!
2021-07-17T10:59:26 点赞:0
在 微集团聊天区(app工匠) 中回复
现在的成员:1.DDguan2.喵窝里der斑鸠3.UT纳海4.冰镇杨梅汁5.天下第一皮卡丘6.蒟蒻OIer10485767.唯爱工作室de名探酱8.R星9.KvK丶10.LCC官方。希望更多成员可以参加!多找些人!
2021-07-18T15:49:06 点赞:0
在 微集团聊天区(app工匠) 中回复
https://appcraft.codemao.cn?workId=108971796&inviteCode=Z0LG4I86&~&点击击链接,一起进入《Neptune修图》的协同创作吧~
2021-07-18T15:50:10 点赞:0
在 BCMapp团队招人拉! 中回复
我们的微团队已经十分nb了,别跟我们抢人。想了解一下也行:
https://shequ.codemao.cn/community/386055
2021-07-18T21:26:38 点赞:0
在 【解决跨域】appcraft跨域问题通知 中回复
这位少年,我看你骨骼优良,才华横溢,不如加入我们的微集团把(app工匠):https://shequ.codemao.cn/community/386055
2021-07-18T21:40:08 点赞:0
在 微集团聊天区(app工匠) 中回复
https://appcraft.codemao.cn?workId=109563110&inviteCode=Pc9R0xMA&~&点击击链接,一起进入《黑洞探音》的协同创作吧~
2021-07-19T11:00:30 点赞:0
在 微集团聊天区(app工匠) 中回复
KITTEN多人协作上线了!!!!:https://preview-kitten.codemao.cn/,快去试试吧!!!!
2021-07-19T19:12:08 点赞:0
在 我是萌新,找工作室,我很听话,小学生,温馨提示看一下我主页。 中回复
来我们LIT2级工作室吧!无门栏,有官网,作品多,室长还是小蓝猫哦(大佬),成员都十分积极!
2021-07-19T20:46:14 点赞:0