提交 412222fe 编写于 作者: 每日一练社区's avatar 每日一练社区

update dir name

上级 3e385efd
......@@ -277,27 +277,8 @@ def modify_config_and_dir_name_new():
new_dir_name = os.path.join(root_dir, new_dir_name)
os.rename(tem_dir, new_dir_name)
print(new_dir_name)
# print(len(exercises_dirs))
print(exercises_dirs)
# for exercises_dir in exercises_dirs:
# title = exercises_dir.split('/')[-1].split('.')[-1]
# root_dir = '/'.join(exercises_dir.split('/')[:-1])
# exercises_id = exercises_dir.split('/')[-1].split('.')[0]
# new_exercises_dir_name = '{}-{}'.format(int(exercises_id)+1, title)
# print(exercises_dir)
# print(title)
# print(exercises_id)
# print(new_exercises_dir_name)
# new_dst_dir_name = os.path.join(root_dir, new_exercises_dir_name)
# print(new_dst_dir_name)
# os.rename(exercises_dir, new_dst_dir_name)
# pass
if helper_function == 'count_tag_class':
count_tag_class()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册