S
Su Wei
hi,everybody,Sorry to bother you.
i hvae seen some code like this before:
class BusinessBO :
dev __init__(slef):
#write you own code here
dev businessMethod :
#write you own code here
pass
why and when we should add the keyword "pass" ?
and some time i have seen
class SomeObject(Object) :
#some code
why and when we should inherit Object?
thanks in advanced.
--
ÝëÈ»»ØÊ×Ôø¾ËêÔ£¬
ëüëÊÖÐÒÀÏ¡ÉÁ˸×ÅÇåÎú¡£
²Å·¢ÏÖ£¬
ÔÀ´ÔÚÎҵļÇÒäÉî´¦£¬
»¹²ÐÁô×ÅÄþ¾²¶øÓÖÐÒ¸£µÄ˲¼ä¡£
Ò»ÊÀ·çÁ÷ÒÑÆ®¹ý£¬×ªÑÛ½¥³É°×Í·ÎÌ¡£
i hvae seen some code like this before:
class BusinessBO :
dev __init__(slef):
#write you own code here
dev businessMethod :
#write you own code here
pass
why and when we should add the keyword "pass" ?
and some time i have seen
class SomeObject(Object) :
#some code
why and when we should inherit Object?
thanks in advanced.
--
ÝëÈ»»ØÊ×Ôø¾ËêÔ£¬
ëüëÊÖÐÒÀÏ¡ÉÁ˸×ÅÇåÎú¡£
²Å·¢ÏÖ£¬
ÔÀ´ÔÚÎҵļÇÒäÉî´¦£¬
»¹²ÐÁô×ÅÄþ¾²¶øÓÖÐÒ¸£µÄ˲¼ä¡£
Ò»ÊÀ·çÁ÷ÒÑÆ®¹ý£¬×ªÑÛ½¥³É°×Í·ÎÌ¡£