This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
你正在循环错误的事情。
您需要以逗号字符分割输入。然后循环这些元素,将每个元素转换为
float
并测试它。You're looping over the wrong thing.
You need to split the input at comma characters. Then loop over those elements, converting each of them to
float
and testing it.