# 修改默认程序

当您创建一个新的项目，src目录包含了一个"Hello World!"的模板main.rs文件

修改模板源代码：

1. 在文本编辑器中打开src/main.rs文件并删除存在的内容。
2. 编写您想在Internet Computer上发布的程序。

编写程序时，请注意有两种类型的调用（更新调用和查询调用），更新函数使用异步消息

&#x20; 3\. 保存并关闭src/main.rs文件。


---

# 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://mixdao.gitbook.io/dfinity/san-shou-ba-shou/4.-shi-yong-bu-tong-yu-yan-kai-fa/shi-yong-rust/xiu-gai-mo-ren-cheng-xu.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.
