Python
Introduction
Basic
What is "__init__.py"?
**kwargs
Function
ord()
2's complement
Tkinter
Button
How to pass arguments to a Button command in Tkinter?
Method
Application
Creating a Tkinter class and waiting for a return value
Show data when cursor move in matplotlib
Frame
Pmw
Django
Template
setting
Operation System
Powered by
GitBook
ord()
Reference:
Python 3.1 快速導覽 - 內建函數 ord()
ord(c): 回傳字元 c 的 Unicode 編碼值
想要在python裡表達binary value為10進制可以透過下面的方式:
print
int(ord(
'd'
))
#OUT: 100
results matching "
"
No results matching "
"