Created
August 31, 2022 18:36
-
-
Save fishyer/7b2bb75873e1ed07c126f3c45f33eba4 to your computer and use it in GitHub Desktop.
语雀工具类的test方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test(): | |
print("-------------------[test]-------------------") | |
# print(sys.path) | |
# cmd=f'python --version' | |
# cmd=f'ls -l' | |
# cmd=f'net time \\127.0.0.1' | |
# cmd=r"cd D:\Dropbox\MyObsidian\MyYuque\test && waque upload" | |
# cmdCode = os.system(cmd) | |
# cmdOutput = os.popen(cmd).read() | |
# print("cmd:", cmd) | |
# print("cmdOutput:", cmdOutput) | |
# cmdResult = subprocess.getstatusoutput(cmd) | |
# print("cmdResult:", cmdResult) | |
# nowTime=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
# processMarkdown(mdPath) | |
# frontmatter=processFrontmatter(mdPath) | |
# print(frontmatter) | |
# parser = argparse.ArgumentParser(description='ArgUtils') | |
# parser.add_argument('-d', type=str, default='000000', help="data date") | |
# parser.add_argument('-a', type=str, default=None, help="agent_id_from_platform id") | |
# args = parser.parse_args() | |
# getUploadDir() | |
# bakName=getBackupFileName(mdPath) | |
# print("bakName:", bakName) | |
# print("nowTime:", nowTime) | |
# processFrontmatter(mdPath) | |
# processMarkdown(mdPath) | |
# genBakFile(mdPath) | |
processRegex(testMdPath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment