tianyunperfect пре 1 година
родитељ
комит
688a6133eb
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      project/github_speed.py

+ 5 - 2
project/github_speed.py

@@ -28,8 +28,8 @@ response = requests.get('https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts'
 speedHostStr = response.text
 print(speedHostStr)
 
-start = "github start"
-end = "github end"
+start = "#github start"
+end = "#github end"
 speedHostStr = start + "\n" + speedHostStr + "\n" + end + "\n"
 
 # 如果已经存在,则替换
@@ -42,3 +42,6 @@ print("*" * 100)
 print(allHostStr)
 # 写入hosts
 open(host_path, 'w', encoding='utf-8').write(allHostStr)
+
+print("*" * 100)
+print("写入完成")