复制代码 代码如下: #!/usr/bin/env python # -*- coding: utf-8 -*- import os, base64 icon = open(‘ya.png’,’rb’) iconData = icon.read() iconData = base64.b64encode(iconData) LIMIT = 60 liIcon = [] while True: sLimit = iconData[:LIMIT] iconData = iconData[LIMIT:] liIcon.append(‘\’%s\” %s