Эх сурвалжийг харах

这个b程序今天就写到这里吧

NandHyf 1 жил өмнө
parent
commit
cd1e763691
2 өөрчлөгдсөн 6 нэмэгдсэн , 7 устгасан
  1. 5 7
      Controller.py
  2. 1 0
      config.toml

+ 5 - 7
Controller.py

@@ -10,7 +10,9 @@ class Client():
     def get_config():
         # T-B-C...
         configs = ['lang', 'listStyle']
+        # rl == 'r'eturn 'l'ist
         rl = Stateful.matchTomlKeys("config.toml", configs)
+        
         global lang, listStyle
         lang = rl[0]
         listStyle = rl[1]
@@ -20,22 +22,18 @@ class Client():
         print(Stateful.matchTomlKey("config.toml", lang, "command-help"))
 
 
-    def excute():
-        pass
-
-
     def start():
-        # get config
+        # 1. get config
         Client.get_config()
 
         # test code
         Client.get_help()
 
 
-        # list board
+        # 2. list board
         # Command.list
 
-        # wait command input
+        # 3. wait command input
         command = input()
 
 

+ 1 - 0
config.toml

@@ -17,6 +17,7 @@ path = "test.db"
 
 # ----- helps -----
 # 难道用asicⅡ然后根据系统语言转换?
+# 或者是单独的.toml/.txt 文本文件也行
 [command-help]
 en = """
 Help texts in en