# 旁门左道

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

### 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
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://euclid-jie.gitbook.io/euclid_jie_s_book/qi-guai-de-ji-qiao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
