high_low_mean.py # -*- coding: utf-8 -*- """ Created on Sun Oct 2…
标签:python学习
随机漫步模型之python实现
random_walk.py # -*- coding: utf-8 -*- """ Created on Sun Oct 22&…
Python chapter 11 learning notes
测试 单元测试和测试用例 单元测试:核实函数的某个方面没有问题; 测试用例:一组单元测试,这些单元测试一起核实函数在各种情形下的行为都符合要求; 全覆盖式测试用例包含一整套单元测试,涵盖了各种可能的函数使用方式。 可通过的测试 要为函数编写…
Python chapter 10 learning notes
·Reading data from file oFormat: with open('pi_digits.txt') as file_object: &nb…
Python chapter 9 learning notes
·CLASS For example, class Restaurant(): def __init__(self, restaurant_name, …