You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
14 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
1 year ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
5 years ago
1 year ago
2 years ago
1 year ago
4 years ago
4 years ago
4 years ago
3 years ago
1 year ago
5 years ago
4 years ago
4 years ago
5 years ago
2 years ago
4 years ago
1 year ago
4 years ago
5 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
1 year ago
4 years ago
5 years ago
4 years ago
1 year ago
5 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1 year ago
4 years ago
3 years ago
5 years ago
5 years ago
1 year ago
2 years ago
1 year ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. <div class="pagebreak"></div>
  2. <h2 id="index"><a href="#index" name="index">#</a>Index</h2>
  3. <div style="column-count: 3; width: 960px; page-break-inside: avoid">
  4. <h3 id="a">A</h3>
  5. <p><strong>abstract base classes, <a href="#abstractbaseclasses">4</a>, <a href="#abcsequence">19</a></strong><br>
  6. <strong>animation, <a href="#animation">40</a>, <a href="#pygame">42</a>-<a href="#basicmariobrothersexample">43</a></strong><br>
  7. <strong>argparse module, <a href="#argumentparser">22</a></strong><br>
  8. <strong>arguments, <a href="#arguments">10</a>, <a href="#partial">12</a>, <a href="#commandlinearguments">22</a></strong><br>
  9. <strong>arrays, <a href="#array">29</a>, <a href="#numpy">37</a>-<a href="#indexing">38</a></strong><br>
  10. <strong>asyncio module, <a href="#coroutines">33</a></strong><br>
  11. <strong>audio, <a href="#audio">40</a>-<a href="#synthesizer">41</a>, <a href="#sound">42</a></strong> </p>
  12. <h3 id="b">B</h3>
  13. <p><strong>beautifulsoup library, <a href="#scrapespythonsurlversionnumberandlogofromitswikipediapage">35</a></strong><br>
  14. <strong>binary representation, <a href="#ints">7</a>, <a href="#binhex">8</a></strong><br>
  15. <strong>bitwise operators, <a href="#bitwiseoperators">8</a>, <a href="#operator">31</a></strong><br>
  16. <strong>bytes, <a href="#open">22</a>-<a href="#modes">23</a>, <a href="#pickle">25</a>, <a href="#bytes">28</a>-<a href="#memoryview">29</a></strong> </p>
  17. <h3 id="c">C</h3>
  18. <p><strong>cache, <a href="#lrucache">13</a></strong><br>
  19. <strong>callable, <a href="#callable">17</a></strong><br>
  20. <strong>class, <a href="#type">4</a>, <a href="#class">14</a>-<a href="#inline-2">20</a>, <a href="#metaprogramming">31</a>-<a href="#metaclass">32</a></strong><br>
  21. <strong>closure, <a href="#closure">12</a>-<a href="#decorator">13</a></strong><br>
  22. <strong>collection, <a href="#abstractbaseclasses">4</a>, <a href="#collection">18</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a></strong><br>
  23. <strong>collections module, <a href="#dictionary">2</a>, <a href="#namedtuple">3</a>, <a href="#abstractbaseclasses">4</a>, <a href="#abcsequence">19</a>, <a href="#deque">29</a></strong><br>
  24. <strong>combinatorics, <a href="#combinatorics">8</a></strong><br>
  25. <strong>command line arguments, <a href="#commandlinearguments">22</a></strong><br>
  26. <strong>comparable, <a href="#comparable">16</a></strong><br>
  27. <strong>comprehensions, <a href="#comprehensions">11</a></strong><br>
  28. <strong>context manager, <a href="#contextmanager">17</a>, <a href="#readtextfromfile">23</a>, <a href="#or">27</a>, <a href="#or-1">30</a></strong><br>
  29. <strong>copy function, <a href="#copy">15</a></strong><br>
  30. <strong>coroutine, <a href="#coroutines">33</a></strong><br>
  31. <strong>counter, <a href="#counter">2</a>, <a href="#generator">4</a>, <a href="#nonlocal">12</a>, <a href="#iterator-1">17</a></strong><br>
  32. <strong>csv, <a href="#csv">26</a>, <a href="#printsacsvfileasanasciitable">34</a>, <a href="#dataframeencodedecodeplot">46</a>, <a href="#displaysalinechartoftotalcoronavirusdeathspermilliongroupedbycontinent">47</a></strong><br>
  33. <strong>curses module, <a href="#runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">33</a>, <a href="#curses">34</a></strong><br>
  34. <strong>cython, <a href="#cython">49</a></strong> </p>
  35. <h3 id="d">D</h3>
  36. <p><strong>dataclasses module, <a href="#namedtupleenumdataclass">12</a>, <a href="#dataclass">15</a></strong><br>
  37. <strong>datetime module, <a href="#datetime">8</a>-<a href="#constructors">9</a></strong><br>
  38. <strong>decorator, <a href="#decorator">13</a>, <a href="#class">14</a>, <a href="#property">15</a>, <a href="#sortable">16</a></strong><br>
  39. <strong>deques, <a href="#deque">29</a></strong><br>
  40. <strong>dictionaries, <a href="#dictionary">2</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a>, <a href="#collectionsandtheirexceptions">21</a></strong><br>
  41. <strong>duck types, <a href="#ducktypes">16</a>-<a href="#abcsequence">19</a></strong> </p>
  42. <h3 id="e">E</h3>
  43. <p><strong>enum module, <a href="#enum">19</a>-<a href="#inline-2">20</a></strong><br>
  44. <strong>enumerate function, <a href="#enumerate">3</a></strong><br>
  45. <strong>eval function, <a href="#eval">33</a></strong><br>
  46. <strong>exceptions, <a href="#exceptions">20</a>-<a href="#exceptionobject">21</a>, <a href="#exceptions-1">23</a>, <a href="#logging">35</a></strong> </p>
  47. <h3 id="f">F</h3>
  48. <p><strong>files, <a href="#print">22</a>-<a href="#memoryview">29</a>, <a href="#runsabasicfileexplorerintheterminal">34</a>, <a href="#dataframeencodedecodeplot">46</a></strong><br>
  49. <strong>filter function, <a href="#mapfilterreduce">11</a></strong><br>
  50. <strong>flask library, <a href="#web">36</a></strong><br>
  51. <strong>floats, <a href="#abstractbaseclasses">4</a>, <a href="#floats">6</a>, <a href="#types">7</a></strong><br>
  52. <strong>format, <a href="#format">6</a>-<a href="#comparisonofpresentationtypes">7</a></strong><br>
  53. <strong>functools module, <a href="#mapfilterreduce">11</a>, <a href="#partial">12</a>, <a href="#debuggerexample">13</a>, <a href="#sortable">16</a></strong><br>
  54. <strong>futures, <a href="#threadpoolexecutor">30</a></strong> </p>
  55. <h3 id="g">G</h3>
  56. <p><strong>generators, <a href="#generator">4</a>, <a href="#comprehensions">11</a>, <a href="#iterator-1">17</a></strong><br>
  57. <strong>global keyword, <a href="#nonlocal">12</a></strong><br>
  58. <strong>gui, <a href="#pysimplegui">48</a></strong> </p>
  59. <h3 id="h">H</h3>
  60. <p><strong>hashable, <a href="#dataclass">15</a>, <a href="#hashable">16</a></strong><br>
  61. <strong>hexadecimal representation, <a href="#ints">7</a>, <a href="#binhex">8</a>, <a href="#encode-1">28</a></strong> </p>
  62. <h3 id="i">I</h3>
  63. <p><strong>image, <a href="#scrapespythonsurlversionnumberandlogofromitswikipediapage">35</a>, <a href="#image">39</a>-<a href="#animation">40</a>, <a href="#surface">42</a>-<a href="#basicmariobrothersexample">43</a></strong><br>
  64. <strong>imports, <a href="#imports">12</a></strong><br>
  65. <strong>inline, <a href="#otheruses">11</a>, <a href="#inline-1">15</a>, <a href="#inline-2">20</a></strong><br>
  66. <strong>input function, <a href="#input">22</a></strong><br>
  67. <strong>introspection, <a href="#exceptionobject">21</a>, <a href="#introspection">31</a></strong><br>
  68. <strong>ints, <a href="#abstractbaseclasses">4</a>, <a href="#ints">7</a>, <a href="#binhex">8</a>, <a href="#encode-1">28</a></strong><br>
  69. <strong>is operator, <a href="#comparable">16</a></strong><br>
  70. <strong>iterable, <a href="#abstractbaseclasses">4</a>, <a href="#iterable">18</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a></strong><br>
  71. <strong>iterator, <a href="#enumerate">3</a>-<a href="#generator">4</a>, <a href="#comprehensions">11</a>, <a href="#iterator-1">17</a></strong><br>
  72. <strong>itertools module, <a href="#itertools">3</a>, <a href="#combinatorics">8</a></strong> </p>
  73. <h3 id="j">J</h3>
  74. <p><strong>json, <a href="#json">25</a>, <a href="#restrequest">36</a>, <a href="#dataframeencodedecodeplot">46</a></strong> </p>
  75. <h3 id="l">L</h3>
  76. <p><strong>lambda, <a href="#lambda">11</a></strong><br>
  77. <strong>list comprehension, <a href="#comprehensions">11</a></strong><br>
  78. <strong>lists, <a href="#list">1</a>-<a href="#list">2</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a>, <a href="#collectionsandtheirexceptions">21</a></strong><br>
  79. <strong>locale module, <a href="#sortable">16</a></strong><br>
  80. <strong>locks, <a href="#lock">30</a>, <a href="#coroutines">33</a></strong><br>
  81. <strong>logging, <a href="#logging">35</a></strong> </p>
  82. <h3 id="m">M</h3>
  83. <p><strong>main function, <a href="#main">1</a>, <a href="#basicscripttemplate">49</a></strong><br>
  84. <strong>map function, <a href="#mapfilterreduce">11</a>, <a href="#operator">31</a></strong><br>
  85. <strong>math module, <a href="#math">7</a></strong><br>
  86. <strong>memoryviews, <a href="#memoryview">29</a></strong><br>
  87. <strong>metaclass attribute, <a href="#metaclassattribute">32</a></strong><br>
  88. <strong>metaprogramming, <a href="#metaprogramming">31</a>-<a href="#metaclass">32</a></strong> </p>
  89. <h3 id="n">N</h3>
  90. <p><strong>namedtuples, <a href="#namedtuple">3</a></strong><br>
  91. <strong>nonlocal keyword, <a href="#nonlocal">12</a></strong><br>
  92. <strong>numpy library, <a href="#numpy">37</a>-<a href="#indexing">38</a></strong> </p>
  93. <h3 id="o">O</h3>
  94. <p><strong>open function, <a href="#contextmanager">17</a>, <a href="#open">22</a>-<a href="#modes">23</a>, <a href="#readobjectfromjsonfile">25</a>, <a href="#readrowsfromcsvfile">26</a>, <a href="#readbytesfromfile">28</a></strong><br>
  95. <strong>operator module, <a href="#operator">31</a></strong><br>
  96. <strong>os commands, <a href="#paths">23</a>-<a href="#shellcommands">25</a>, <a href="#runsabasicfileexplorerintheterminal">34</a></strong> </p>
  97. <h3 id="p">P</h3>
  98. <p><strong>pandas library, <a href="#pandas">44</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
  99. <strong>partial function, <a href="#partial">12</a>, <a href="#userdefinedfunctionscannotbevaluessotheymustbewrapped">20</a></strong><br>
  100. <strong>paths, <a href="#paths">23</a>-<a href="#direntry">24</a>, <a href="#runsabasicfileexplorerintheterminal">34</a></strong><br>
  101. <strong>pickle module, <a href="#pickle">25</a></strong><br>
  102. <strong>pillow library, <a href="#image">39</a>-<a href="#animation">40</a></strong><br>
  103. <strong>plotting, <a href="#plot">34</a>, <a href="#dataframeencodedecodeplot">46</a>, <a href="#plotly">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
  104. <strong>print function, <a href="#print">22</a></strong><br>
  105. <strong>profiling, <a href="#profiling">36</a>-<a href="#profilingbyline">37</a></strong><br>
  106. <strong>progress bar, <a href="#progressbar">34</a></strong><br>
  107. <strong>property decorator, <a href="#property">15</a></strong><br>
  108. <strong>pygame library, <a href="#pygame">42</a>-<a href="#basicmariobrothersexample">43</a></strong> </p>
  109. <h3 id="q">Q</h3>
  110. <p><strong>queues, <a href="#deque">29</a>, <a href="#queue">30</a>, <a href="#coroutines">33</a></strong> </p>
  111. <h3 id="r">R</h3>
  112. <p><strong>random module, <a href="#random">8</a></strong><br>
  113. <strong>ranges, <a href="#range">3</a>, <a href="#abstractbaseclasses">4</a></strong><br>
  114. <strong>recursion, <a href="#lrucache">13</a></strong><br>
  115. <strong>reduce function, <a href="#mapfilterreduce">11</a>, <a href="#operator">31</a></strong><br>
  116. <strong>regular expressions, <a href="#regex">5</a>-<a href="#specialsequences">6</a></strong><br>
  117. <strong>requests library, <a href="#scrapespythonsurlversionnumberandlogofromitswikipediapage">35</a>, <a href="#startstheappinitsownthreadandqueriesitsrestapi">36</a></strong> </p>
  118. <h3 id="s">S</h3>
  119. <p><strong>scope, <a href="#insidefunctiondefinition">10</a>, <a href="#nonlocal">12</a>, <a href="#complexexample">20</a></strong><br>
  120. <strong>scraping, <a href="#scraping">35</a>, <a href="#basicmariobrothersexample">43</a>, <a href="#dataframeencodedecodeplot">46</a>, <a href="#displaysalinechartoftotalcoronavirusdeathspermilliongroupedbycontinent">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
  121. <strong>sequence, <a href="#abstractbaseclasses">4</a>, <a href="#sequence">18</a>-<a href="#abcsequence">19</a></strong><br>
  122. <strong>sets, <a href="#set">2</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a>, <a href="#tableofrequiredandautomaticallyavailablespecialmethods">19</a>, <a href="#collectionsandtheirexceptions">21</a>, <a href="#operator">31</a></strong><br>
  123. <strong>shell commands, <a href="#shellcommands">25</a></strong><br>
  124. <strong>sleep function, <a href="#progressbar">34</a></strong><br>
  125. <strong>sortable, <a href="#list">1</a>, <a href="#sortable">16</a></strong><br>
  126. <strong>splat operator, <a href="#splatoperator">10</a>-<a href="#otheruses">11</a>, <a href="#readrowsfromcsvfile">26</a></strong><br>
  127. <strong>sql, <a href="#sqlite">27</a>, <a href="#dataframeencodedecodeplot">46</a></strong><br>
  128. <strong>statistics, <a href="#statistics">7</a>, <a href="#numpy">37</a>-<a href="#indexing">38</a>, <a href="#pandas">44</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
  129. <strong>strings, <a href="#abstractbaseclasses">4</a>-<a href="#comparisonofpresentationtypes">7</a>, <a href="#class">14</a></strong><br>
  130. <strong>struct module, <a href="#struct">28</a>-<a href="#integertypesuseacapitalletterforunsignedtypeminimumandstandardsizesareinbrackets">29</a></strong><br>
  131. <strong>subprocess module, <a href="#sends11tothebasiccalculatorandcapturesitsoutput">25</a></strong><br>
  132. <strong>super function, <a href="#inheritance">14</a></strong><br>
  133. <strong>sys module, <a href="#lrucache">13</a>, <a href="#exit">21</a>-<a href="#commandlinearguments">22</a></strong> </p>
  134. <h3 id="t">T</h3>
  135. <p><strong>table, <a href="#csv">26</a>, <a href="#example-1">27</a>, <a href="#table">34</a>, <a href="#numpy">37</a>-<a href="#indexing">38</a>, <a href="#dataframe">45</a>-<a href="#dataframeaggregatetransformmap">46</a></strong><br>
  136. <strong>template, <a href="#format">6</a>, <a href="#dynamicrequest">36</a></strong><br>
  137. <strong>threading module, <a href="#threading">30</a></strong><br>
  138. <strong>time module, <a href="#progressbar">34</a>, <a href="#stopwatch">36</a></strong><br>
  139. <strong>tuples, <a href="#tuple">3</a>, <a href="#abstractbaseclasses">4</a>, <a href="#otheruses">11</a></strong><br>
  140. <strong>type, <a href="#type">4</a>, <a href="#metaprogramming">31</a>-<a href="#metaclass">32</a></strong><br>
  141. <strong>type annotations, <a href="#dataclass">15</a></strong> </p>
  142. <h3 id="w">W</h3>
  143. <p><strong>wave module, <a href="#audio">40</a>-<a href="#writefloatsamplestowavfile">41</a></strong><br>
  144. <strong>web, <a href="#web">36</a></strong> </p>
  145. </div>