Skip to content

Commit b84ae53

Browse files
committed
update
1 parent 2b0511d commit b84ae53

File tree

3,973 files changed

+51044
-105065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,973 files changed

+51044
-105065
lines changed

Diff for: get.bat

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ echo "
88
pause
99
git add .
1010
git commit -m "update"
11+
git gc
1112
git push
1213
pause

Diff for: leetcode-cn.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def parse_proble_set(problemSet):
3434
continue
3535

3636
def construct_url(problemTitle):
37-
# url = "https://leetcode-cn.com/problems/"+ problemTitle + "/description/"
3837
url = "https://leetcode-cn.com/problems/"+ problemTitle + "/"
3938
# print(url)
4039
get_proble_content(url,problemTitle)
@@ -120,11 +119,11 @@ def saveJSON(data, filename):
120119
def main():
121120
url = "https://leetcode-cn.com/api/problems/all/"
122121
html = json.loads(get_proble_set(url))
123-
problemset = html["stat_status_pairs"]
124-
saveJSON(html, "[cn]json1-origin-data.json")
125-
saveJSON(problemset, "[cn]json2-problemset.json")
122+
saveJSON(html, "origin-data.json")
123+
124+
# html = json.load(open("origin-data.json", 'r', encoding='utf-8'))
126125

127-
# problemset = json.load(open("[cn]json2-problemset.json", 'r', encoding='utf-8'))
126+
problemset = html["stat_status_pairs"]
128127
parse_proble_set(problemset)
129128

130129

0 commit comments

Comments
 (0)