就像python一样double currentweight =122.5double newweight = 60weight=new…-current…System…println(weight)怎么计算出来weight
把字符串转double在运算不就行了