Chinaunix首页 | 论坛 | 博客
  • 博客访问: 365993
  • 博文数量: 94
  • 博客积分: 3421
  • 博客等级: 中校
  • 技术积分: 919
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-18 16:27
文章分类

全部博文(94)

文章存档

2015年(8)

2013年(6)

2012年(26)

2011年(8)

2010年(26)

2009年(20)

我的朋友

分类: Python/Ruby

2015-09-16 15:40:22

格式一:

var variable_name [type] = [type] value
==> the second type we can ignore for the basic type, like int float32 string
==> the first type we can ignore, but make sure the compiler can get the correct type for the value

格式二:

variable_name := value
===> complier can get the type of the value and assgine the value to variable_name.
===> it includes declaration and assigne
阅读(1405) | 评论(0) | 转发(0) |
0

上一篇:go package

下一篇:shell 中的() 与{}

给主人留下些什么吧!~~