Python3---内置函数---hex()

前言

该文章描述了函数hex()

2020-01-16

天象独行

  0X01;描述

    hex() 函数用于将10进制整数转换成16进制,以字符串形式表示。

  0X02;语法

    hex(x)

    参数:x -- 10进制整数

  0X03;返回值

    返回16进制数,以字符串形式表示。

  0X04;举例:

print(hex(10))
C:UsersaaronDesktopPytoon-cadevenvScriptspython.exe C:/Users/aaron/Desktop/Pytoon-cade/urllib-Study.py
0xa

Process finished with exit code 0

  

原文地址:https://www.cnblogs.com/aaron456-rgv/p/12202602.html