zoukankan
html css js c++ java
Python3 hex() 函数
Python3 hex() 函数
Python3 内置函数
描述
hex()
函数用于将一个指定数字转换为 16 进制数。
语法
hex 语法:
hex
(
x
)
参数说明:
x -- 一个整数
返回值
返回一个字符串,以 0x 开头。
实例
以下实例展示了 hex 的使用方法:
>>>
hex
(
255
)
'
0xff
'
>>>
hex
(
-
42
)
'
-0x2a
'
>>>
hex
(
12
)
'
0xc
'
>>>
type
(
hex
(
12
)
)
<
class
'
str
'
>
# 字符串
Python3 内置函数
萍水相逢逢萍水,浮萍之水水浮萍!
查看全文
相关阅读:
Linux用户行为日志审计
日志分析-Web
secedit.exe 本地审核
StreamCQL
一个关于缓存很好的文章~
Java免费开源数据库、Java嵌入式数据库、Java内存数据库
MySQL db优化
威胁情报
《javascript设计模式》读书笔记二(封装和隐藏信息)
Mysql触发器
原文地址:https://www.cnblogs.com/AIBigTruth/p/10473122.html
最新文章
23种设计模式
将Ftp添加到资源管理器中直接使用
SQLiteParameter不能将TableName作为参数
为革命保护视力 --- 给 Visual Studio 换颜色
Builder Pattern
C#通过代码注册COM组件
typeof和GetType的区别
方法Equals和操作符==的区别
group by
灵活运用的技术已实现
热门文章
Android L中间RecyclerView 、CardView 、Palette使用
java 产生的固体物的基础上 增删改的SQL声明
弹出层 div dialog
在win7在结构cocos2d-x v3.2rc0开发环境(For Android)
面试题:有限制几个全阵列
Swing 显示良好JPanel保存为图片
在信息技术和加密算法
《猿从程序项目经理》书评-项目经理没有
Linux巡检
Storm技术结合
Copyright © 2011-2022 走看看