Browse Source

String

pull/46/head
Jure Šorn 5 years ago
parent
commit
22060a7d77
2 changed files with 0 additions and 2 deletions
  1. 1
      README.md
  2. 1
      index.html

1
README.md

@ -323,7 +323,6 @@ String
```python
<str> = <str>.replace(old, new [, count]) # Replaces 'old' with 'new' at most 'count' times.
<str> = <str>.translate(<table>) # Use `str.maketrans(<dict>)` to generate table.
<list> = textwrap.wrap(<str>, width) # Nicely breaks string into lines.
```
```python

1
index.html

@ -434,7 +434,6 @@ to_exclusive = &lt;range&gt;.stop
</code></pre>
<pre><code class="python language-python hljs">&lt;str&gt; = &lt;str&gt;.replace(old, new [, count]) <span class="hljs-comment"># Replaces 'old' with 'new' at most 'count' times.</span>
&lt;str&gt; = &lt;str&gt;.translate(&lt;table&gt;) <span class="hljs-comment"># Use `str.maketrans(&lt;dict&gt;)` to generate table.</span>
&lt;list&gt; = textwrap.wrap(&lt;str&gt;, width) <span class="hljs-comment"># Nicely breaks string into lines.</span>
</code></pre>
<pre><code class="python language-python hljs">&lt;str&gt; = chr(&lt;int&gt;) <span class="hljs-comment"># Converts int to unicode char.</span>
&lt;int&gt; = ord(&lt;str&gt;) <span class="hljs-comment"># Converts unicode char to int.</span>

Loading…
Cancel
Save