feat(*): 代码仓库初始化
This commit is contained in:
14
Server/1/aa.js
Normal file
14
Server/1/aa.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const fs = require("fs");
|
||||
|
||||
fs.readFile(__dirname + "/aa.txt", "utf8", (err, data) => {
|
||||
if (err) return;
|
||||
|
||||
const content = data
|
||||
.replace(/(\d+)[、.](?=\s*)/g, "$1、 ")
|
||||
.replace(/([A-D])[.、](?=\s*)/g, "$1. ")
|
||||
.replace(/\r?\n([B-D]\.)/g, "\t$1");
|
||||
|
||||
fs.writeFile(__dirname + "/new.txt", content, "utf8", (err) => {
|
||||
if (err) return;
|
||||
});
|
||||
});
|
||||
10
Server/1/aa.txt
Normal file
10
Server/1/aa.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
1、四大名著有哪些?
|
||||
A.西游记
|
||||
B.水浒传
|
||||
C.三国演义
|
||||
D.红楼梦
|
||||
2.我们的口号
|
||||
A、键盘敲烂、月薪过万
|
||||
B、键盘生灰、垃圾一堆
|
||||
C、键盘打烂
|
||||
D、键盘放烂
|
||||
4
Server/1/new.txt
Normal file
4
Server/1/new.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
1、 四大名著有哪些?
|
||||
A. 西游记 B. 水浒传 C. 三国演义 D. 红楼梦
|
||||
2、 我们的口号
|
||||
A. 键盘敲烂、月薪过万 B. 键盘生灰、垃圾一堆 C. 键盘打烂 D. 键盘放烂
|
||||
Reference in New Issue
Block a user