希腊小写字母 python

问题描述

我们如何在python中使用希腊小写字母:(或工程中的unicode符号)

喜欢这张图片

enter image description here

据我所知,β 等...就像其他英文字母一样。我虽然是个特殊的信,我不能像别人一样写,因为笔记本电脑的关键字没有。

解决方法

无需再做任何事情。只需使用那个字符!

见:

C:\>python
Python 3.9.0 (tags/v3.9.0:9cf6752,Oct  5 2020,15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help","copyright","credits" or "license" for more information.
>>> β=100
>>> print(β)
100
>>>

要使用特殊字符,您可以在窗口中搜索 Character Map 并使用此工具。 Window Character Map

或者使用任何网站都是这样的:https://www.online-toolz.com/tools/character-map.php

只需复制并粘贴字符即可。