Skip to content

Instantly share code, notes, and snippets.

View chouch0u's full-sized avatar

chouchou chouch0u

View GitHub Profile
// Variables and Functions for Notion
// These just set up some functions that can then be called in subsequent scripts.
// Basic variables - sets up fixed variables to be used in all the functions below
base = "";
version = "2021-08-16";
//// Secret token and inbox
chouch0u /
Created March 16, 2016 17:01
将 Eudic 网页版本导出的生词本单词转换为 Anki 可用的格式。
import sys
import re
import os
if os.path.isfile(sys.argv[2]):
eudic = open(sys.argv[1])
anki = open(sys.argv[2], 'a')
import time
import os
import sys
file_path = "/Users/theme/Desktop/English vocabulary.txt"
def judge_file():
file_state = os.path.exists(file_path)
if file_state:
print "File was exist."