whyyy
This commit is contained in:
parent
177ff4692f
commit
83b163b685
@ -1,7 +1,7 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
import { fight } from "./md5-api.mts";
|
import { fight } from "./md5-api";
|
||||||
|
|
||||||
// 从文件的 ./input.txt 中读取输入
|
// 从文件的 ./input.txt 中读取输入
|
||||||
// 然后丢给 md5.js
|
// 然后丢给 md5.js
|
@ -43,7 +43,7 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
|
|||||||
with open(root_path / "md5" / "input.txt", "w") as f:
|
with open(root_path / "md5" / "input.txt", "w") as f:
|
||||||
f.write(names)
|
f.write(names)
|
||||||
# 执行 node md5.js
|
# 执行 node md5.js
|
||||||
runner_path = root_path / "md5" / "runs.mts"
|
runner_path = root_path / "md5" / "runs.ts"
|
||||||
input_path = root_path / "md5" / "input.txt"
|
input_path = root_path / "md5" / "input.txt"
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
["node", runner_path.absolute(), input_path.absolute()],
|
["node", runner_path.absolute(), input_path.absolute()],
|
||||||
|
Loading…
Reference in New Issue
Block a user