zoukankan      html  css  js  c++  java
  • TypeError: 'int' object is not callable

    1、错误描述

    >>> import time;
    >>> time.altzone();
    Traceback (most recent call last):
      File "<pyshell#14>", line 1, in <module>
        time.altzone();
    TypeError: 'int' object is not callable

    2、错误原因

          time.altzone返回格林威治西部的夏令时地区的偏移秒数,直接返回秒数,不需要添加小括号

    3、解决办法

          time.altzone

    >>> import time;
    >>> time.altzone();
    Traceback (most recent call last):
      File "<pyshell#14>", line 1, in <module>
        time.altzone();
    TypeError: 'int' object is not callable
    >>> time.altzone
    -32400
    >>> 
  • 相关阅读:
    20210312
    20210311
    20210310
    例5-1
    例5-2
    例4-12-2
    例4-12
    例4-11
    例4-10
    例4-9
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313687.html
Copyright © 2011-2022 走看看