标签:
转自 http://blog.csdn.net/todd911/article/details/8943149
方法一:
运行结果:
the value is 8
方法二:
运行结果:
the value of x+2 is 8
代码中的#将变量转换成了字符串后输出。
最后再介绍一种#号的用法:
输出结果是:
sum_5 is:2
##将左右的符号连接成一个符号,使之成为一个变量,如果新组成的变量必须要存在于代码中。
标签:
原文地址:http://www.cnblogs.com/QingCHOW/p/4604089.html