回覆列表
  • 1 # 極迭代

    蟹妖~~~

    因為pow() 函式是屬於Python的內建函式

    同樣屬於內建函式的還有

    abs()

    all()

    any()

    ascii()

    bin()

    bool()

    bytearray()

    bytes()

    callable()

    chr()

    classmethod()

    compile()

    complex()

    delattr()

    dict()

    dir()

    divmod()

    enumerate()

    eval()

    exec()

    filter()

    float()

    format()

    frozenset()

    getattr()

    globals()

    hasattr()

    hash()

    help()

    hex()

    id()

    input()

    int()

    isinstance()

    issubclass()

    iter()

    len()

    list()

    locals()

    map()

    max()

    memoryview()

    min()

    next()

    object()

    oct()

    open()

    ord()

    pow()

    print()

    property()

    range()

    repr()

    reversed()

    round()

    set()

    setattr()

    slice()

    sorted()

    staticmethod()

    str()

    sum()

    super()

    tuple()

    type()

    vars()

    zip()

    __import__()

    而floor()函式是屬於擴充套件的math庫的

    所以需要先進行匯入才能使用

    import math

    math.floor( x )

  • 中秋節和大豐收的關聯?
  • 常熟到張家港有多遠?做什麼車?