3 Star 3 Fork 3

bgArrayOrganization / audio_scoreTransFotmat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
查看代码数.py 880 Bytes
一键复制 编辑 原始数据 按行查看 历史
bgArray 提交于 2022-07-17 17:50 . 先存个档,正在大更新
# -*- conding: utf8 -*-
if __name__ == '__main__':
import os
m = 0
m_jing = 0
for path, dir_list, file_list in os.walk(r"./"):
for file_name in file_list:
if file_name.endswith('.py'):
file = os.path.join(path, file_name)
print("得到文件名:" + str(file))
for i in open(file, 'r', encoding="utf-8"):
code = i.replace(' ', '').replace('\n', '')
if code.startswith('#'):
m_jing += 1
if code:
print("\t" + code)
m += 1
m_jing += 1
else:
pass
print("\n最终代码行数为:" + str(m))
print("\n最终代码行数(含注释)为:" + str(m_jing))
Python
1
https://gitee.com/bg-array-organization/audio_score-trans-fotmat.git
git@gitee.com:bg-array-organization/audio_score-trans-fotmat.git
bg-array-organization
audio_score-trans-fotmat
audio_scoreTransFotmat
master

搜索帮助