mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
删除一些没用的文件
This commit is contained in:
parent
1cfbfe1ba1
commit
f8926d2f4f
8
安装依赖.py
8
安装依赖.py
@ -1,8 +0,0 @@
|
||||
|
||||
from os import system
|
||||
from sys import platform
|
||||
|
||||
if platform == "linux":
|
||||
system("python3 -m pip install -r ./requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
||||
elif platform == "win32":
|
||||
system("pip install -r ./requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
23
查看代码数.py
23
查看代码数.py
@ -1,23 +0,0 @@
|
||||
# -*- conding: utf8 -*-
|
||||
|
||||
import os
|
||||
|
||||
m = 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('#'):
|
||||
continue
|
||||
if code:
|
||||
print("\t" + code)
|
||||
m += 1
|
||||
else:
|
||||
pass
|
||||
|
||||
input("\n最终代码行数为:" + str(m))
|
Loading…
Reference in New Issue
Block a user