阿对对队的一次提交尝试(进行了小部分的代码评注) #8

Closed
zzy34407230 wants to merge 37 commits from zzy34407230/mindspore2022:master into master
1 changed files with 2 additions and 2 deletions
Showing only changes of commit b16965c5ed - Show all commits

View File

@ -33,12 +33,12 @@ pwd = os.path.dirname(os.path.realpath(__file__))
pkg_dir = os.path.join(build_path, 'package')
def _read_file(filename):
def _read_file(filename): #中文编码UTF-8格式阅读文件
with open(os.path.join(pwd, filename), encoding='UTF-8') as f:
return f.read()
version = _read_file('version.txt').replace("\n", "")
version = _read_file('version.txt').replace("\n", "") #版本文件
readme = _read_file('README.md')