加入了黑丝图来功能

This commit is contained in:
liuwei
2025-02-27 16:31:47 +08:00
parent 324612dc21
commit 9bee369c60
3 changed files with 44 additions and 13 deletions
+11 -1
View File
@@ -25,7 +25,17 @@ def get_random_file_from_dir(directory):
def get_xiuren_pic():
# 使用示例
directory = '.' # 替换为你的目录路径
directory = 'xiuren' # 替换为你的目录路径
random_file_path = get_random_file_from_dir(directory)
if random_file_path:
return os.path.abspath(random_file_path)
else:
return None
def get_xiuren_heisi_pic():
# 使用示例
directory = 'xiuren/heisi' # 替换为你的目录路径
random_file_path = get_random_file_from_dir(directory)
if random_file_path:
return os.path.abspath(random_file_path)