单例开发#-*-coding:utf-8-*-__author__=‘xiaojiaxin‘__file_name__=‘单例开发‘classfoo:def__init__(self,name,age):self.name=nameself.age=agedefshow(self):print(self.name,self.age)obj1=foo("jiaixn",72)#obj是food的对象
分类:
其他好文 时间:
2018-04-13 17:50:11
阅读次数:
147
Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The wa ...
分类:
其他好文 时间:
2018-04-03 23:41:46
阅读次数:
150
Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The wa ...
分类:
其他好文 时间:
2018-03-29 00:08:24
阅读次数:
186
Meal: MealBuilder: SubMealBuilderA: SubMealBuilderB: KFCWaiter: BuilderMethod(调用): Result: This is SubMealBuilderA Drink!This is SubMealBuilderA food! ...
分类:
编程语言 时间:
2018-03-25 23:06:16
阅读次数:
348
#coding=utf-8 class Dog(object): ''' 类的描述 ''' def __init__(self,name): self.name = name self.__food = None @staticmethod #实际上跟类没什么关系,单纯的函数,但是必须通过类名来调用... ...
分类:
其他好文 时间:
2018-03-17 10:55:48
阅读次数:
152
前言 本节分为四大块: 1. 商品详情页 food 组件(布局样式、第三方插件库better-scroll 的应用) 2. split 组件 3. ratingselect 组件 4. 评价列表 商品详情页 food 组件 1. CSS 设置 1 <style lang="stylus" rel=" ...
分类:
其他好文 时间:
2018-03-08 02:46:32
阅读次数:
210
1、支持多表连接,例如 select * from student,class where student.cid=class.id; 2、支持左外连接(left outer join) 例如: select * from foods left outer join food_types on fo ...
分类:
数据库 时间:
2018-03-04 16:06:01
阅读次数:
187
import os# os.system()# os.mkdir() class Dog(object): '''这个类是描述狗这个对象的''' def __init__(self,name): self.name = name self.__food = None #@staticmethod # ...
分类:
其他好文 时间:
2018-03-01 00:33:11
阅读次数:
164
在javascript OOP中,我们经常会这样定义: function cat(){}cat.prototype={ food:"fish", say: function(){ alert("I love "+this.food); }}var blackCat = new cat;blackCa ...
分类:
移动开发 时间:
2018-02-27 12:04:29
阅读次数:
203
样式表的选择器 1.类选择器 根据HTML标签的class属性选择样式应用的属性 .类值{ … } 2.ID选择器 根据HTML标签的ID属性选择样式应用的元素 #id值{ … } 3.标签选择器 根据HTML标签选择样式应用的属性 标签名{ … } 4.子选择器 .food>li{ border: ...
分类:
Web程序 时间:
2018-02-26 21:44:49
阅读次数:
245