预缓存实用程序改动
This commit is contained in:
@@ -188,6 +188,7 @@ class FillBlank(Composition):
|
|||||||
yield Button("退格", id=self.regid(f"delete"))
|
yield Button("退格", id=self.regid(f"delete"))
|
||||||
|
|
||||||
def handler(self, event, type_):
|
def handler(self, event, type_):
|
||||||
|
# TODO: 改动:在线错误纠正
|
||||||
if type_ == "button":
|
if type_ == "button":
|
||||||
if self.recid(event.button.id) == "delete":
|
if self.recid(event.button.id) == "delete":
|
||||||
if len(self.inputlist) > 0:
|
if len(self.inputlist) > 0:
|
||||||
|
@@ -21,8 +21,8 @@ def proc_file(path: Path):
|
|||||||
c = 0
|
c = 0
|
||||||
for i in nu.nucleons:
|
for i in nu.nucleons:
|
||||||
c += 1
|
c += 1
|
||||||
print(f"预缓存 [{nu.name}] ({c}/{len(nu)}): {i['content']}")
|
print(f"预缓存 [{nu.name}] ({c}/{len(nu)}): {i['content'].replace('/', '')}")
|
||||||
precache(i['content'])
|
precache(i['content'].replace('/', ''))
|
||||||
|
|
||||||
|
|
||||||
def walk(path_str: str):
|
def walk(path_str: str):
|
||||||
|
Reference in New Issue
Block a user