From c014ab0d149db5d87635eb15afdbbba6b38e184a Mon Sep 17 00:00:00 2001 From: VIVIMAN Date: Fri, 15 Jul 2022 17:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E6=96=B0=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=A4=84=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../go_to_TjHz/{J2101 => J210X}/J2101001.go | 2 +- golang_learn/data_func/go_to_TjHz/main.go | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) rename golang_learn/data_func/go_to_TjHz/{J2101 => J210X}/J2101001.go (96%) diff --git a/.gitignore b/.gitignore index d72165c..c13bf6e 100644 --- a/.gitignore +++ b/.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/* diff --git a/golang_learn/data_func/go_to_TjHz/J2101/J2101001.go b/golang_learn/data_func/go_to_TjHz/J210X/J2101001.go similarity index 96% rename from golang_learn/data_func/go_to_TjHz/J2101/J2101001.go rename to golang_learn/data_func/go_to_TjHz/J210X/J2101001.go index 9a187c5..16cfe95 100644 --- a/golang_learn/data_func/go_to_TjHz/J2101/J2101001.go +++ b/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 diff --git a/golang_learn/data_func/go_to_TjHz/main.go b/golang_learn/data_func/go_to_TjHz/main.go index d4848ce..19b582a 100644 --- a/golang_learn/data_func/go_to_TjHz/main.go +++ b/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()) }