Skip to content

Commit 5781fc0

Browse files
committed
total
1 parent 5438522 commit 5781fc0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
项目目标:完全掌握本项目后进轻松大厂
1010

11-
计划定期更新,从基础到各种实战问题,打造齐全的Java安全面试题库
11+
计划定期更新,从基础到各种实战问题,打造齐全的Java安全面试题库(包含问题和详细的答案)
1212

1313
最低难度★ 最高难度★★★★★
1414

@@ -18,6 +18,8 @@
1818

1919
## 分类
2020

21+
当前问题总数:58
22+
2123
[Java本身的安全问题 - 15个](https://github.com/4ra1n/JavaSecInterview/tree/master/java)
2224

2325
[Shiro框架相关的安全问题 - 8个](https://github.com/4ra1n/JavaSecInterview/tree/master/shiro)

auto.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
index = open("README.md", "r+", encoding="utf-8");
33
lines = index.readlines()
44

5+
all = 0
56
for i in range (0,len(lines)):
67
if lines[i].startswith("["):
78
line = lines[i]
@@ -15,8 +16,10 @@
1516
total = total + 1
1617
p = line.split("-")[0]
1718
s = line.split("个]")[1]
19+
all += total
1820
lines[i] = p + "- " + str(total) + "个]" + s
1921

2022
index.seek(0)
2123
index.truncate()
22-
index.writelines(lines)
24+
index.writelines(lines)
25+
print(all)

0 commit comments

Comments
 (0)