擅长:python、mysql、java
<p>其他人(到目前为止)都说了些什么。Int是不可变的,因此必须使用<strong>new</strong>。在</p>
<p>另请参阅(接受的答案):</p>
<ul>
<li><a href="https://stackoverflow.com/questions/1135335/increment-int-object">increment int object</a></li>
<li><a href="https://stackoverflow.com/questions/399022/why-cant-i-subclass-datetime-date">Why can't I subclass datetime.date?</a></li>
</ul>