From 13df4ac99811fd54372a46b8b964850502dd1bfd Mon Sep 17 00:00:00 2001 From: VJanabia <59285622+VJanabia@users.noreply.github.com> Date: Thu, 27 Aug 2026 11:57:02 +0800 Subject: [PATCH] add contributor pofile example --- contributors/VJanabia/get_python_files.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contributors/VJanabia/get_python_files.py diff --git a/contributors/VJanabia/get_python_files.py b/contributors/VJanabia/get_python_files.py new file mode 100644 index 0000000..e8ca96c --- /dev/null +++ b/contributors/VJanabia/get_python_files.py @@ -0,0 +1,16 @@ +from pathlib import Path + +import pofile + + +def main(): + """获取当前目录下的 Python 文件。""" + files = pofile.get_files( + path=str(Path(__file__).resolve().parent), + name="py", + ) + print("\n".join(files)) + + +if __name__ == "__main__": + main() \ No newline at end of file