- 博客(2)
- 收藏
- 关注
原创 【大概是最笨的方法】POJ 2719 - 非进制思路+公式法
问题描述 原问题链接 You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 3 to the digit 5, always skipping over the digit 4. This defect shows up in all positions (the one’s, t
2020-11-02 10:39:34 178
原创 【乱序】Python学习笔记(一):self到底是个啥
在python类中的各个方法(包括构造方法__init__())的参数里都要写self,下面来探究self的用法 一言以蔽之 self代表“本实例”,很像java里的this,但用法又稍微不太一样。 1. 直接定义在类里的成员变量不能加self class MyClass: """class""" i = 3 self.h = 5 错误信息: Traceback (mo...
2020-04-18 23:07:55 193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人