switch原则上只能作用于int型上, 但是,char、float、char等可以隐式的转换为int 型,而long, string 不可以, 所以呢,switch 不可以作用于Long, string 类型的变量上。