- 论坛徽章:
- 3
|
本帖最后由 ylky_2000 于 2015-08-11 07:45 编辑
2015-08-11
类中方法,类静态方法和类动态方法 最大的区别是什么?
2015-08-10
定义类的时候,成员属性定义好了。如果在类外 实例化后,可以对一个不存在的成员属性赋值吗?
成员方法中的参数self,有什么作用呢?
2015-08-06
请教下比如pycurl库,中我通过命令行去查看帮助文件
print(pycurl.TIMEOUT.__doc__)
和print(pycurl.FORBID_REUSE.__doc__)
为何得到的帮助描述内容一模一样呢?
>>> print(pycurl.TIMEOUT.__doc__)
int(x=0) -> int or long
int(x, base=10) -> int or long
Convert a number or string to an integer, or return 0 if no arguments
are given. If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.
If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base. The
literal can be preceded by '+' or '-' and be surrounded by whitespace.
The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
interpret the base from the string as an integer literal.
>>> int('0b100', base=0)
>>> print(pycurl.FORBID_REUSE.__doc__)
int(x=0) -> int or long
int(x, base=10) -> int or long
Convert a number or string to an integer, or return 0 if no arguments
are given. If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.
If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base. The
literal can be preceded by '+' or '-' and be surrounded by whitespace.
The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to
interpret the base from the string as an integer literal.
>>> int('0b100', base=0)
我的问题是:一般从哪里查到权威的库文件的常量的说明文档?具体到这个pycurl库如何查?
2015-08-05
支持,留个记录。。
|
|