Skip to content

Commit 82f5a35

Browse files
committed
添加输入输出语法方法
1 parent 834b949 commit 82f5a35

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,27 @@ Go Playground 允许在浏览器里面编辑运行 Go 语言代码。在浏览
343343

344344
## 格式化输入输出
345345

346+
347+
<details>
348+
<summary>输入输出语法方法</summary>
349+
346350
> `%[标记][宽度][.精度][arg索引]动词`
347351
> `Print(arg列表)``Println(arg列表)``Printf(格式字符串, arg列表)`
348352
353+
```go
354+
package main
355+
import (
356+
"fmt"
357+
"time"
358+
)
359+
func main() {
360+
fmt.Println("Hello World!")
361+
fmt.Println("The time is", time.Now())
362+
}
363+
```
364+
365+
</details>
366+
349367
<details>
350368
<summary>标记</summary>
351369

0 commit comments

Comments
 (0)