forked from Lephenixnoir/PythonExtra
8 lines
229 B
Python
8 lines
229 B
Python
"""
|
|
categories: Types,bytes
|
|
description: bytes() with keywords not implemented
|
|
cause: Unknown
|
|
workaround: Pass the encoding as a positional paramter, e.g. ``print(bytes('abc', 'utf-8'))``
|
|
"""
|
|
print(bytes('abc', encoding='utf8'))
|