- 博客(9)
- 收藏
- 关注
转载 Python中的%s,%d,%f
%s 字符串string="hello" #%s打印时结果是hello print "string=%s" % string # output: string=hello #%2s意思是字符串长度为2,当原字符串的长度超过2时,按原长度打印,所以%2s的打印结果还是hello print "string=%2s" % string # output:...
2019-11-07 10:51:45 462
原创 Java变量类型
Java变量类型Java语言支持的变量类型有:类变量:独立于方法之外的变量,用 static 修饰。实例变量:独立于方法之外的变量,不过没有 static 修饰。局部变量:类的方法中的变量。```public class Variable{ static int allClicks=0; // 类变量 String str="hello world"; // ...
2019-10-13 22:31:39 228 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人