转跳到内容

eroko

【会员】新手上路
  • 内容数

    119
  • 加入

  • 最后访问

关于eroko

经济

  • 羽毛 2.00 根
  • 节操值 43.00 节操值

最近资料访问用户

最近访问块目前为禁用并且不会显示给其他用户。

eroko的成就

声名鹊起【你的名字开始为人所知】

声名鹊起【你的名字开始为人所知】 (6/9)

  • ss签到王:还有谁更持久
  • 我的态度:按个表情按钮能省不少字
  • 回音:来而不往非礼也
  • 海天酱油:晒出美味晒出鲜
  • 跬步之积:看啊,我已经签到了这~~么久了

最近徽章

1

社区解答

  1. 如果你会python的话 希望下面这段我自用的代码能帮到你。 这是我用来给黄油改文件夹封面用的 from PIL import Image import os import re def make_ico_file(src_image_file, dist_ico_file, size_list=None): """ :param src_image_file: :param dist_ico_file: :return: """ default_size_list = [ (256, 256), (128, 128), (64, 64), (48, 48), (32, 32), (24, 24), (16, 16) ] size_list = size_list or default_size_list image = Image.open(src_image_file) image = image.convert('RGBA') image.thumbnail([256, 256]) width, height = image.size new_image = Image.new('RGBA', (256, 256), (0, 0, 0, 0)) if width == 256: upper = (256 - height) // 2 new_image.paste(image, (0, upper)) elif height == 256: left = (256 - width) // 2 new_image.paste(image, (left, 0)) else: print('error') # image_cropped = image.crop((0, 0, 256, 256)) # new_image.save(r'.\test\re.png') new_image.save(dist_ico_file, sizes=size_list) def listdirs(folder): return [ d for d in (os.path.join(folder, d1) for d1 in os.listdir(folder)) if os.path.isdir(d) ] def listfiles(folder): return [ d for d in (os.path.join(folder, d1) for d1 in os.listdir(folder)) if os.path.isfile(d) ] def find_getchu_cover(folder): pattern = r'c[0-9]+package\.jpg' f = listfiles(folder) for file in f: result = re.search(pattern, file) if result is not None: return result.group() if __name__ == '__main__': base_dir = r'E:\EroEroEro' dirs = listdirs(base_dir) cover_path = '' for name in dirs: if os.path.exists(name + "\\cover.jpg"): cover_path = name + "\\cover.jpg" elif find_getchu_cover(name) is not None: cover_path = name + '\\' + find_getchu_cover(name) else: print("Cover Not Found") break make_ico_file(src_image_file=cover_path, dist_ico_file=name + '\\fic.ico') desktop_ini = ["[.ShellClassInfo]\n\r", "IconResource=fic.ico,0\n\r", 'FolderType=Pictures'] with open(name + '\\desktop.ini', 'w') as f: f.writelines(desktop_ini) f.close() print(name) os.system('attrib +s +h ' + '"' + name + '"' + '\\desktop.ini') os.system('attrib +r ' + '"' + name + '"')
  2. 也不一定 游戏厂商和硬件商达成了PY交易后 就会做出些调整 主机上的就是独占 PC上就是针对A卡或者G卡单独优化
  3. 尼尔2 抱着傻白甜的心情去舔2B 最后被塞得满满一嘴的屎关游戏 太空捡垃圾 最后发现其实自己不是人类 是个被灌输了人类意识的异形 而地球已经变成了异形的巢穴
  4. 老滚10G 我装完MOD后70G 高清材质 4K分辨率 人物美化一套 萝莉大陆MOD一套 然后异种妊娠MOD 战败Hmod NTRmod FUTAMOD 群PMOD 卖春MOD 各种衣服MOD 武器MOD 场景MOD 贼爽
×
×
  • 新建...

重要消息

为使您更好地使用该站点,请仔细阅读以下内容: 使用条款