摘要:
场景 我需要把下面一张图片中的深黄色(255,255,0)替换成(255,204,0)。使用到pillow库。 code from PIL import Image img = Image.open("logo.png") for i in range(2048): for j in range(2 阅读全文
摘要:
如果网页底色和图片颜色相同(白色),加个阴影是个非常好的选择。 Show me the code p img { box-shadow: 0 0 10px rgba(0,0,0,0.5); overflow: visible; padding: 10px; } 写p img意思是对 p 标签下的 i 阅读全文
摘要:
使用Python 字符串 replace 遇到的小问题 场景:需要replace一串字符串中的8个地方,使用8次replace方法。 报错信息: TypeError: expected a string or other character buffer object 我本以为是使用replace过 阅读全文