feat:ChatGPT第 1 课:变量、类型、条件判断
This commit is contained in:
@@ -15,7 +15,6 @@ object Demo1VarAndVal {
|
||||
println("=================================")
|
||||
|
||||
|
||||
|
||||
println("=================================")
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package practise1.demo
|
||||
|
||||
|
||||
object Demo3StringInterpolation {
|
||||
|
||||
// 这是 Scala 很常用的语法:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package practise1.exercises
|
||||
|
||||
|
||||
object Exercises2 {
|
||||
def main(args: Array[String]): Unit = {
|
||||
/* 练习 2:判断年龄
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package practise1.exercises
|
||||
|
||||
|
||||
object Exercises3 {
|
||||
def main(args: Array[String]): Unit = {
|
||||
/* 练习 3:计算两个数
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package practise1.exercises
|
||||
|
||||
|
||||
import scala.util.Random
|
||||
|
||||
object Exercises4 {
|
||||
|
||||
Reference in New Issue
Block a user