请用 代码 控件贴出代码,这样方便别人帮助你。 浮点数和 0 比较, 不能用 (a == 0). 请看: https://blog.csdn.net/qq_40679299/article/details/79338570