mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
17 lines
279 B
Python
17 lines
279 B
Python
# coding=utf-8
|
||
"""
|
||
@project: maxkb
|
||
@Author:虎
|
||
@file: file_util.py
|
||
@date:2023/9/25 21:06
|
||
@desc:
|
||
"""
|
||
|
||
|
||
def get_file_content(path):
|
||
file = open(path, "r",
|
||
encoding='utf-8')
|
||
content = file.read()
|
||
file.close()
|
||
return content
|