mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
script to count cars in the readme
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
from common.basedir import BASEDIR
|
||||
|
||||
with open(os.path.join(BASEDIR, "README.md")) as f:
|
||||
lines = f.readlines()
|
||||
cars = [l for l in lines if l.strip().startswith("|") and l.strip().endswith("|") and
|
||||
"Make" not in l and any(c.isalpha() for c in l)]
|
||||
print(''.join(cars))
|
||||
print(len(cars))
|
||||
Reference in New Issue
Block a user