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
// ---------------------------------------------------------
// 练习:打印您的名字和姓氏
//
// 使用 Printf 您的名字和姓氏
//
// 期望输出
// My name is Inanc and my lastname is Gumus.
//
// 额外
// 把打印格式声明字符串 (Printf 的第一个参数) 存到一个变量
// 然后传递到 Printf
// ---------------------------------------------------------
func main() {
// 额外: 使用一个变量存打印格式声明字符串
// fmt.Printf("?", ?, ?)
}
你可能感兴趣的文章
go main
go main
go main
go main
go main
go Header
go main
go main
go main
go main