?
???????Python : 3.7.3
?????????OS : Ubuntu 18.04.2 LTS
????????IDE : pycharm-community-2019.1.3
??????Conda : 4.7.5
???typesetting : Markdown
?
code
[email protected]:~$ source activate py37
(py37) [email protected]:~$ ipython
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: num = 255
In [2]: "%d" % num
Out[2]: '255'
In [3]: "%x" % num # hex
Out[3]: 'ff'
In [4]: "%X" % num # HEX
Out[4]: 'FF'
In [5]: exit
(py37) [email protected]:~$ conda deactivate
[email protected]:~$
?
resource
[文档 - English] docs.python.org/3</