main.go 源码
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
// For more tutorials : https://learngoprogramming.com
// In-person training : https://www.linkedin.com/in/inancgumus/
// Follow me on twitter: https://twitter.com/inancgumus
package main
import "fmt"
// ---------------------------------------------------------
// 练习: 用表达式赋值
//
// 1. 用 3.14 乘 2 并赋值到变量 `n`
//
// 2. 打印 `n`
//
// 提示
// 例子: 3 * 2 = 6
// * 是乘法操作符 (它使数字相乘)
//
// 期望输出
// 6.28
// ---------------------------------------------------------
func main() {
// 别修改这里
// 声明一个新的 float64 变量
// 0. 代表 0.0
n := 0.
// 在下面写上你的代码:
// ?
fmt.Println(n)
}
你可能感兴趣的文章
go main
go main
go main
go main
go main
go Header
go main
go main
go main
go main