Update homework 1 and 2

This commit is contained in:
Jeehoon Kang
2020-03-26 03:38:20 +09:00
parent 241a66fcc1
commit 8938a7ad8f
40 changed files with 5171 additions and 1504 deletions

3
scripts/copy-to-kecc-public.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
rsync --exclude=".git" --delete --archive ./ ../kecc-public

View File

@@ -11,8 +11,9 @@ import sys
import re
if __name__ == "__main__":
for fullname in os.listdir("src"):
(filename, ext) = os.path.splitext(fullname)
for root, dir, files in os.walk("src"):
for f in files:
(filename, ext) = os.path.splitext(f)
if ext == ".public":
os.rename(os.path.join("src", fullname), os.path.join("src", filename))
if ext == ".public":
os.rename(os.path.join(root, f), os.path.join(root, filename))