print简易计算器str=input请输入算式operator=while operator== if +in str operator=+ elif - in str operator = - elif in str operator = elif in str operator = else
第10行,应该是 "operator=''" 而不是 "operator="。
原文地址: https://www.cveoy.top/t/topic/fX7e 著作权归作者所有。请勿转载和采集!