Browse Source

学习新的方式处理代码

master
VIVIMAN 3 years ago
parent
commit
c014ab0d14
  1. 1
      .gitignore
  2. 2
      golang_learn/data_func/go_to_TjHz/J210X/J2101001.go
  3. 12
      golang_learn/data_func/go_to_TjHz/main.go

1
.gitignore

@ -42,4 +42,5 @@
/golang_learn/.idea/modules.xml
/golang_frame/.idea/vcs.xml
/golang_learn/.idea/vcs.xml
/golang_learn/data_func/go_to_TjHz/J21/J2101.go
*/frontend/dist/*

2
golang_learn/data_func/go_to_TjHz/J2101/J2101001.go → golang_learn/data_func/go_to_TjHz/J210X/J2101001.go

@ -1,4 +1,4 @@
package J2101
package J210X
func J024_1_1() float64 {
return 12.0

12
golang_learn/data_func/go_to_TjHz/main.go

@ -2,13 +2,13 @@ package main
import (
"fmt"
"golang_learn/data_func/go_to_TjHz/J2101"
"golang_learn/data_func/go_to_TjHz/J210X"
)
func main() {
fmt.Printf("%f\n", J2101.J024_1_1()+J2101.J024_2_1())
fmt.Printf("%f\n", J2101.J024_1_2()+J2101.J024_2_2())
fmt.Printf("%f\n", J2101.J024_1_12()*J2101.J024_2_12())
fmt.Printf("%f\n", J2101.J024_1_13()/J2101.J024_2_13())
fmt.Printf("%f\n", J2101.J024_1_14()/J2101.J024_2_14())
fmt.Printf("%f\n", J210X.J024_1_1()+J210X.J024_2_1())
fmt.Printf("%f\n", J210X.J024_1_2()+J210X.J024_2_2())
fmt.Printf("%f\n", J210X.J024_1_12()*J210X.J024_2_12())
fmt.Printf("%f\n", J210X.J024_1_13()/J210X.J024_2_13())
fmt.Printf("%f\n", J210X.J024_1_14()/J210X.J024_2_14())
}

Loading…
Cancel
Save