当前位置:网站首页>实例055:按位取反
实例055:按位取反
2022-08-10 22:20:00 【懒笑翻】
题目:学习使用按位取反~。
程序分析:~0=1; ~1=0;
~X = -X-1
代码:
print(~18)
print(~~2)
print(~-18)
运行结果:

边栏推荐
- fme csmapreprojector转换器使用高程异常模型进行高程基准转换
- 美味石井饭菜
- 自学软件测试不知道该如何学起,【软件测试技能图谱|自学测试路线图】
- ThreadLocal comprehensive analysis (1)
- 华为HCIE云计算之Fusion Access桌面云
- STL-stack
- BM13 determines whether a linked list is a palindrome
- CFdiv2-Common Number-(奇偶数二分+规律)
- MySQL: MySQL Cluster - Principle and Configuration of Master-Slave Replication
- STL-stack
猜你喜欢

Leave a message with a prize | OpenBMB x Tsinghua University NLP: The update of the large model open class is complete!

交换机和生成树知识点

This visual tool artifact is more intuitive and easy to use!love so much

阿里云架构师金云龙:基于云XR平台的视觉计算应用部署

亲测有效|处理风控数据特征缺失的一种方法

【软件测试】2022年最火的十大测试工具,你掌握了几个
云服务器基于 SSH 协议实现免密登录

虚拟地址空间

JS学习 2022080

Redis
随机推荐
链表中的节点每k个一组翻转
Merge k sorted linked lists
美味的佳肴
《DevOps围炉夜话》- Pilot - CNCF开源DevOps项目DevStream简介 - feat. PMC成员胡涛
What are the concepts, purposes, processes, and testing methods of interface testing?
mmpose关键点(一):评价指标(PCK,OKS,mAP)
谁是边缘计算服务的采购者?是这六个关键角色
特别的三杯鸡
y93.第六章 微服务、服务网格及Envoy实战 -- Envoy配置(四)
12 Recurrent Neural Network RNN2 of Deep Learning
fme csmapreprojector转换器使用高程异常模型进行高程基准转换
CIKM2022 | 基于双向Transformers对比学习的序列推荐
Glide监听Activity生命周期源码分析
How many threads does LabVIEW allocate?
Extended Chinese Remainder Theorem
CFdiv2-Common Number-(奇偶数二分+规律)
2021IDEA创建web工程
Shell 编程--Sed
make & cmake
Shell programming specification and variables