【问题标题】:What happens when you call a string method调用字符串方法时会发生什么
【发布时间】:2022-06-17 22:08:33
【问题描述】:

当你在浮点对象上调用像 islower 这样的字符串方法时会发生什么?例如 13.37.islower()

【问题讨论】:

  • 试试看:AttributeError: 'float' object has no attribute 'islower'

标签: python


【解决方案1】:

你得到一个错误:

AttributeError: 'float' object has no attribute 'islower'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-04
    • 2016-11-11
    • 2010-12-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多