Table of Contents
Print Special Character
Introduce how to print special character.
Overview
As described here, to include special characters in a string, you can use Python Unicode-Escape
encoding.
The following demonstrates how to print ↑
.
python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('\u2191')
↑
Search Table
This is just a list of the Unicode
characters I have used. You can find all the unicode characters here.
Character | Unicode | Description |
---|---|---|
↑ | 2191 | Up arrow |