摘要:
基础知识 基础知识 1 将trait作为接口使用此时Trait就与Java中的接口非常类似,不过注意,在Scala中无论继承还是trait,统一都是extends关键字。Scala跟Java 8前一样不支持对类进行多继承,但是支持多重继承trait,使用with关键字即可 1 将trait作为接口使 阅读全文
摘要:
题目描述Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeat 阅读全文