cc.的日常

2022.2.12

reconcile 调和

imminent 即将发生的

rebellion 叛乱

wedge 楔

reinforce 加强

diffuse 扩散

appointment 任命

irony 反讽

approximate 大约的

venue 场地

constituent 组成部分

robust 不妥协的

amplify 放大

eminent 卓越的

coalition 结合体

salvation 拯救

appraisal 估计

academy 学院

naughty 顽皮的

paradigm 范例

vibrate 震动


python

class Car:
    def __init__(self,brand):
        self.brand=brand
    def start(self):
        print('汽车已启动..')

car=Car('宝马X5')
car.start()
print(car.brand)

class Student:
    def __init__(self,name,age):
        self.name=name
        self.__age=age
    def show(self):
        print(self.name,self.__age)

stu=Student('张三',20)
stu.show()
#在类的使用使用name与age
print(stu.name)
#print(stu.__age)
print(dir(stu))
print(stu._Student__age)  #在类的外部可以通过_Student__age进行访问
class Person(object):
    def __init__(self, name, age):
        self.name=name
        self.age=age
    def info(self):
        print(self.name, self.age)

class Student(Person):
    def __init__(self, name, age, stu_no):
        super().__init__(name, age)
        self.stu_no=stu_no
    def info(self):
        super().info()
        print(self.stu_no)

class Teacher(Person):
    def __init__(self, name, age, teachofyear):
        super(Teacher, self).__init__(name,age)
        self.teachofyear=teachofyear

stu=Student('张三', 20, '1811')
teacher=Teacher('李四', 34, 10)

stu.info()
teacher.info()

2022.2.13

反转字符串

s+left 表示 一个地址

s[left]表示s数组中left位置上的值


jungle 丛林

dissipate 消散

paradigm 范例

physiology 生理

robust 强劲的

nutrition 食物

amplify 放大

missile 导弹

sculpture 雕像

Herald 预兆

venue 场地

delegate 选派

salvation 拯救

protocol 礼仪

shell 壳

tribute 贡税

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值