python查看class参数
类:
class Test:
def __init__(self,num1,num2):
print num1,num2
用什么函数能查看 Test类有两个参数
能查吗 谁知道
用dir 和info智能查看属性和方法
谢谢.................
相关问答:
我每次上传的文件读到的数据都不正确。2M 的图片读得10多K 。。哪位大侠可以帮帮我啊。
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......
Python code:
class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def paint(self, factory):
point = factory.getPoint()
......
哪位前辈可以给我个Python写的【可运行的源代码】,实现以下功能:
1.对指定端口的监听并截取【指定】数据包
2.能对【自己定义的】协议包进行解析
万分感谢!!!
我来顶 thy38
......