> For the complete documentation index, see [llms.txt](https://euclid-jie.gitbook.io/euclid_jie_s_book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://euclid-jie.gitbook.io/euclid_jie_s_book/qi-guai-de-ji-qiao.md).

# 旁门左道

记录一些杂七杂八但是经常用到的技巧

### python代码块

* `GUI`读取文件路径

  ```python
  import tkinter as tk
  from tkinter import filedialog
  def getLocalFile():
      root = tk.Tk()
      root.withdraw()
      filePath = filedialog.askopenfilename()
      print('文件路径：', filePath)
      return filePath
  ```
