PIL庫的使用

#導入庫 from PIL import Image #需要的字符(隨便定義就行了) ascii_char = list(’"$%-&WM#*ahkbdpqwmZO0QLJUYXzcvunxr\jft/()1{}[]?-/[email protected]<>i!;;,’’) #定義顏色 def get_char(r,b,g,alpha=256): if alpha == 0: #返回空格 ret
相關文章
相關標籤/搜索