瀏覽代碼

封装了API类

Huan 5 年之前
父節點
當前提交
0934a80e9f
共有 7 個文件被更改,包括 2574 次插入3308 次删除
  1. 227 1179
      algebraicfactory/gui.py
  2. 2 1
      algebraicfactory/template.py
  3. 390 362
      crawler/gui.py
  4. 851 809
      datascience/gui.py
  5. 1 1
      draftboard/board.py
  6. 577 469
      gitrepo/gui.py
  7. 526 487
      machinelearning/gui.py

文件差異過大導致無法顯示
+ 227 - 1179
algebraicfactory/gui.py


+ 2 - 1
algebraicfactory/template.py

@@ -12,6 +12,7 @@ class __AlgebraInit:
         self.symbol_dict = {"self": self}  # 命名空间
         self.symbol_dict.update(globals())
         self.symbol_dict.update(locals())
+        exec('from sympy import *', self.symbol_dict)
         self.algebra_dict = {}
         self.algebra_dict_view = {}  # 门面(str)
         self.symbol_describe = {}  # 描述文件
@@ -268,7 +269,7 @@ class AlgebraSymbol(__AlgebraInit):
             pass
         new_name = self.symbol_dict.copy()
         new_name.update({"k": k})
-        exec(f"self.symbol_dict['{name}'] = Symbol('{name}')", new_name)  # 创建一个Symbols
+        exec(f"self.symbol_dict['{name}'] = Symbol('{name}', **k)", new_name)  # 创建一个Symbols
         self.symbol_describe[name] = describe
         return True
 

文件差異過大導致無法顯示
+ 390 - 362
crawler/gui.py


文件差異過大導致無法顯示
+ 851 - 809
datascience/gui.py


+ 1 - 1
draftboard/board.py

@@ -96,7 +96,7 @@ def func_draw(func_list, pixel_accuracy=1000):
             break
 
 
-def draw_line(xy_coordinates:tuple, with_point=False):
+def draw_line(xy_coordinates: tuple, with_point=False):
     global previous_x, previous_y
     if with_point:
         pygame.draw.circle(SCREEN, pen_color, xy_coordinates, pen_weight, 0)

文件差異過大導致無法顯示
+ 577 - 469
gitrepo/gui.py


文件差異過大導致無法顯示
+ 526 - 487
machinelearning/gui.py


部分文件因文件數量過多而無法顯示