⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appendixd.htm

📁 很好的一本学习Python的书籍
💻 HTM
📖 第 1 页 / 共 5 页
字号:
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rmod__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; divide </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        self</i></font><font face="Times New Roman, Times, Serif" size="3"> by
        </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> and 
        return the remainder. Called when left operand is not an instance of 
        your class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1159}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rmul__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; multiply </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        self</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        times </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> and 
        return the result. Called when left operand is not an instance of your 
        class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{115A}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__ror__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; perform the equivalent of a bitwise </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">or</font><font face="Times New Roman, Times, Serif" size="3"> 
        operation (|) on your class and return the result. Called when left 
        operand is not an instance of your class.</font><font face="Times New Roman, Times, Serif" color="#ffff00" size="3"><!-- break --></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{115B}">
    <p>&nbsp;</a></td>
  </tr>
</table>
<p><font color="white" size="0"></p>
</center>
<p><a name="bottom">&nbsp;</a>
<!-- netLibrary.com Copyright Notice --></font></p>
<p>&nbsp;</p>
<center>
<table cellPadding="0" width="100%" border="0">
  <tr>
    <td align="middle">
    <table cellSpacing="0" cellPadding="2" width="100%" border="0">
      <tr>
        <td align="left">&nbsp;</td>
        <td align="right">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td align="left"><a name="{115C}">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td align="right">
        <font face="Times New Roman, Times, Serif" color="#ff0000" size="2">Page 
        480</font></td>
      </tr>
    </table>
    </a><a name="{115D}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rpow__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; perform the equivalent of exponentiating </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        self</i></font><font face="Times New Roman, Times, Serif" size="3"> to 
        the </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        power. No </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">r</font><font face="Times New Roman, Times, Serif" size="3">-equivalent 
        to </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        pow_(<i>self,other[,modulo])</i></font><font face="Times New Roman, Times, Serif" size="3">. 
        Called when left operand is not an instance of your class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{115E}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rrshift__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; return the result of performing a right-shift (&gt;&gt;) by </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        bits or units on your class, but only if it makes sense. Called when 
        left operand is not an instance of your class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{115F}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rshift__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; return the result of performing a right-shift (&gt;&gt;) by </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        bits or units on your class, but only if it makes sense.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1160}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rsub__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; subtract </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        other</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        from </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3"><i>
        self</i></font><font face="Times New Roman, Times, Serif" size="3"> and 
        return the result. Called when left operand is not an instance of your 
        class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1161}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__rxor__(<i>self,other)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Numeric; perform the equivalent of a bitwise </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">xor</font><font face="Times New Roman, Times, Serif" size="3"> 
        operation (^) on your class and return the result. Called when left 
        operand is not an instance of your class.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1162}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__setattr__(<i>self,name,value)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Access; called when an attempt to assign </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        object.<i>attribute&nbsp;=&nbsp;value</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        is made. When implementing this, insert the value in the dictionary of 
        instance attributes: </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        self.__dict__[<i>name]&nbsp;=&nbsp;value</i></font><font face="Times New Roman, Times, Serif" size="3">.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1163}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__setitem__(<i>self,key,value)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Sequence and mapping; called when an attempt to assign </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        object[<i>key]&nbsp;=&nbsp;value</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        is made. Keys are usually integers.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{1164}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        <b>__setslice__(<i>self,i,j,sequence)<br>
        </i></b></font><font face="Times New Roman, Times, Serif" size="3">
        Sequence and mapping; called when an attempt to assign </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        object[<i>i:j]&nbsp;=&nbsp;sequence</i></font><font face="Times New Roman, Times, Serif" size="3"> 
        is made. Keys are usually integers.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nb

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -