Design Pattern Python
文章平均质量分 75
zhucai4
这个作者很懒,什么都没留下…
展开
-
Basic OOP in Python
Short rate class import numpy as np import matplotlib.pyplot as plt class short_rate(object): def __init__(self, name_, rate_): self.name = name_ self.rate = rate_ d原创 2015-05-07 13:38:27 · 432 阅读 · 0 评论 -
Simulate Blackjack Game - Card Generator
First of all, we define a abstract class for card. We implement the initialization function in base class, so every subclass will inherite such initial function. In the base class, # -*- coding:原创 2015-06-14 11:32:33 · 415 阅读 · 0 评论