Python/String: Difference between revisions
< Python
Jump to navigation
Jump to search
| Line 11: | Line 11: | ||
= Using methods = | = Using methods = | ||
{| class="wikitable" | {| class="wikitable" | ||
! || | ! || Code | ||
|- | |- | ||
| byte => str || <source lang="python">b'abc'.decode('utf-8)</source> | | byte => str || <source lang="python">b'abc'.decode('utf-8)</source> | ||
Revision as of 16:45, 21 March 2018
Using statements
Using methods
| Code | |
|---|---|
| byte => str | b'abc'.decode('utf-8)
|