race.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:Chiaki-Nanami 作者: Ikusaba-san 项目源码 文件源码
def update(self):
        if self._start is None:
            self._start = time.perf_counter()

        if self.is_finished():
            return

        self.distance += random.triangular(0, 10, 3)
        if self.is_finished() and self._end is None:
            self._end = time.perf_counter()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号