diff --git a/.idea/modules.xml b/.idea/modules.xml index cc47053..0d30011 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7..35eb1dd 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/main.go b/main.go index 02c9d2b..8fd72b5 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,8 @@ func main() { fmt.Println("You are 9%") case 8: fmt.Println("You are 8%") + //switch传透下一层 + fallthrough case 7: fmt.Println("You are 7%") case 6: