FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vcs/_4.python/common/python07_check_python_files.py at master · bunshue/vcs · GitHub
bunshue
/
vcs
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
3
Code
Issues
0
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vcs
/
_4.python
/
common
/
python07_check_python_files.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (23 loc) · 858 Bytes
Breadcrumbs
vcs
/
_4.python
/
common
/
python07_check_python_files.py
Copy path
File metadata and controls
31 lines (23 loc) · 858 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
對python檔案做black
"""
import
os
import
sys
import
time
import
datetime
print
(
"------------------------------------------------------------"
)
# 60個
cmd
=
"black python07_check_python_files.py"
tmp_filename
=
"D:/_git/vcs/_big_files/tmp_black_mesg.txt"
ret
=
os
.
system
(
cmd
+
" 2>"
+
tmp_filename
)
if
ret
==
0
:
with
open
(
tmp_filename
,
"r"
)
as
file
:
print
(
file
.
read
())
else
:
print
(
"black 失敗"
)
print
(
"------------------------------------------------------------"
)
# 60個
print
(
"------------------------------------------------------------"
)
# 60個
print
(
"作業完成"
)
print
(
"------------------------------------------------------------"
)
# 60個
sys
.
exit
()
print
(
"------------------------------------------------------------"
)
# 60個
print
(
"------------------------------------------------------------"
)
# 60個
Back
|
FazBrowse Home
|
New Git URL