不管怎样else都走,原因是因为它是跟在第二个if后面,因为现在的happy值大于30 ,所以第二个if不走,走第一个if和else 3、equal本身是比较内存地址是否相同,而重写是将它改为比较内容是否相同, toString重写没有改变它本身的属性4、所有的需要运行的都需要写在调试方法里面 5、 ...
分类:
其他好文 时间:
2017-07-23 11:24:26
阅读次数:
173
最近看起深度学习的一些知识,想要学习一个框架。在网上看了别人对这些框架的评比后,决定学习 tersorflow。之前一直以为 tersorflow 只可以在 Linux 下安装,出乎意料的是,Windows 下 Python3.5 也可以安装。so happy! 以下是自己的安装教程。注意:只有 P ...
public class Person { private String name; private Pet pet; public Person() {} public Person(String name,Pet pet){ this.name=name; this.pet=pet; ... ...
分类:
其他好文 时间:
2017-07-21 22:09:25
阅读次数:
233
Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege ...
分类:
移动开发 时间:
2017-07-21 18:57:59
阅读次数:
180
题目描述 请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 publicclassSolution { public String replaceSpace(StringBuffer str) ...
分类:
其他好文 时间:
2017-07-18 12:03:50
阅读次数:
133
UVA11636-Hello World! Time limit: 1.000 seconds When you ?rst made the computer to print the sentence “Hello World!”, you felt so happy, not knowing h ...
分类:
其他好文 时间:
2017-07-17 10:09:45
阅读次数:
183