> For the complete documentation index, see [llms.txt](https://ethan-lin.gitbook.io/refactoring/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan.md).

# 单位转换

- [项目导学](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/index.md)
- [题目介绍](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/1-project-description.md)
- [项目剖析](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/2-project-analyze.md)
- [任务1：重构初体验](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/3-first-impression.md)
- [任务2：简单的重命名](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/4-simple-renaming.md)
- [任务3：提取字符串常量](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/5-refactorings-extract-constants.md)
- [任务4：改变函数参数](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/6-change-function-declarations.md)
- [重构精髓：十六字心法](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/7-refactor-secrets.md)
- [任务5：再撸一遍](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/8-rename-again.md)
- [任务6：提炼计算函数](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/9-extract-calculation-function.md)
- [任务7：再撸一遍](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/10-practice-again.md)
- [项目总结](https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan/11-project-summary.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ethan-lin.gitbook.io/refactoring/dan-wei-zhuan-huan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
