加入了黑丝图来功能
This commit is contained in:
+11
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user