Git Product home page Git Product logo

Hi,I'm Future Deng! 👋

Python全栈开发工程师

logo

  • 🔭 现在就职于 赛力斯重庆新能源设计院有限公司
  • 👋 岗位职责
    • 主导自动化测试平台研发
    • 主导设计自动化测试平台软件架构
    • 主导整车功能测试自动化测试方案开发
    • 主导ADS智能辅助驾驶自动化测试方案开发
  • 🌱 工作中常用技术栈
    • Python、Golang、c++
    • React、Vue、Angular
  • ⚡ 研究方向:
    • Python Web 服务器开发
    • Python 自动化测试开发
    • Python 大数据分析开发
    • Python NLP自然语言处理算法开发
    • Python 图像识别、检查算法开发

Follow Me

个人博客 Github

Show Code

from abc import ABC, abstractmethod

class Validator(ABC):
    """
    使用python描述器来验证名字是不是“future.deng”
    """

    def __set_name__(self, owner, name):
        self.private_name = '_' + name

    def __get__(self, obj, objtype=None):
        return getattr(obj, self.private_name)

    def __set__(self, obj, value):
        self.validate(value)
        setattr(obj, self.private_name, value)

    @abstractmethod
    def validate(self, value):
        pass


class ValidatorName(Validator):
    """
    使用类继承的方式实现validate方法
    """
    def __init__(self, is_validator_name=True):
        self.is_validator_name = is_validator_name

    def validate(self, value):
        if self.is_validator_name:
            if value != 'Future Deng':
                raise ValueError("Future Deng 的私人代码,必须传入'Future Deng' 才能被实例化")


class PythonWebEngineer:

    name = ValidatorName(is_validator_name=True)

    def __init__(self, name):
        self.name = name
        self.age = 28
        self.role = "Python Engineer"
        self.language_spoken = ["zh_CN", "en_US"]
        self.skill = ["Python", "React", "Golang"]


if __name__ == '__main__':
    me = PythonWebEngineer('Future Deng')
    me.name
    
# 输出结果
# Future Deng

#   me = PythonWebEngineer('Future Dengsss')
#   me.name

# 若是传入错误的值 'Future Dengsss'
"""
  File "/Users/futuredeng/opt/backendxh/dsz.py", line 161, in validate
    raise ValueError("Future Deng 的私人代码,必须传入'Future Deng' 才能被实例化")
ValueError: Future Deng 的私人代码,必须传入'Future Deng' 才能被实例化
"""

Future.Deng's Projects

996.icu icon 996.icu

Repo for counting stars and contributing. Press F to pay respect to glorious developers.

aerich icon aerich

A database migrations tool for Tortoise-ORM.

aioredlock icon aioredlock

:lock: The asyncio implemetation of Redis distributed locks

airtest icon airtest

UI Automation Framework for Games and Apps

autogpt icon autogpt

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

awesome-python icon awesome-python

A curated list of awesome Python frameworks, libraries, software and resources

bert icon bert

TensorFlow code and pre-trained models for BERT

book icon book

:green_book:我的个人书籍学习和收藏

caddy icon caddy

Fast, multi-platform web server with automatic HTTPS

canal icon canal

阿里巴巴 MySQL binlog 增量订阅&消费组件

channels icon channels

Developer-friendly asynchrony for Django

chinesenlp icon chinesenlp

Datasets, SOTA results of every fields of Chinese NLP

clickhouse icon clickhouse

ClickHouse® is a free analytics DBMS for big data

cloudreve icon cloudreve

🌩支持多家云存储的云盘系统 (Self-deployed file management and sharing system, supports multiple storage providers)

cobra icon cobra

A Commander for modern Go CLI interactions

cs-base icon cs-base

图解计算机网络、操作系统、计算机组成、数据库,共 1000 张图 + 50 万字,破除晦涩难懂的计算机基础知识,让天下没有难懂的八股文!🚀 在线阅读:https://xiaolincoding.com

cs-notes icon cs-notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

dash icon dash

Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.

data-view icon data-view

基于React和Echarts制作的静态图表,包括饼图-柱形图-进度条-地图-词云以及3d动态词云

deepin-wine icon deepin-wine

【deepin源移植】Debian/Ubuntu上最快的QQ/微信安装方式

developer-roadmap icon developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

dingtalk icon dingtalk

钉钉桌面版,基于electron和钉钉网页版开发,支持Windows、Linux和macOS

django icon django

The Web framework for perfectionists with deadlines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.