当前位置:网站首页>常见运算符9.21
常见运算符9.21
2022-07-27 17:11:00 【拥抱mo mo】
一,python的变量
:
(1) 含义:1, 在程序运行时可以发生变化的量;
2,具有名称的内存变量
(2) 定义变量的方法:
变量名=变量值
强数据类型语言:Java c c++ c#
数据类型 变量名称 =变量值
?int num 100
弱数据类型 语言:python PHP ruby
(3) 命名的规则:
1,变量名必须有数字,大小写字母 ,下划线
2,变量名不能以数字开头
3,不能以关键字或保留字作为变量名
4,变量命名尽量有意义
5,尽量遵循下划线(name_age)或者小驼 峰法(首字母小写,其他单词首字母大写)
二,常见的运算符
算术运算符:+ - * / % // **
逻辑运算符:and .or .not
关系运算符: > < .>=.<=.==.!
赋值运算符:
=
+=
-=
/=
//=
**=
自加自减运算符,注意:python没有这种运算符。
边栏推荐
- Oppo released the first AR glasses and announced that it would invest 50billion in research and development in the next three years
- Introduction to socke programming
- [basic knowledge of deep learning - 43] concept of odds ratio
- 全球手机芯片设计领域首家!紫光展锐荣膺TMMi4级国际认证
- I want to consult. Our maxcompute spark program needs to access redis, development environment and production environment redis
- 深度主动学习综述2020
- Pytorch reports CUDA error: no kernel image is available for execution on the device error
- 【深度学习基础知识 - 44】逻辑回归实现多分类的方法
- Release Samsung 3J1 sensor: the code implies that the safety of pixel 7 face recognition will be greatly increased
- 台积电5nm即将量产:苹果A14独占7成产能,华为麒麟1020拿下3成
猜你喜欢

Oracle +JDBC

【深度学习基础知识 - 45】机器学习中常用的距离计算方法
![[basic knowledge of deep learning - 45] distance calculation methods commonly used in machine learning](/img/6c/b0c2ea667ac361c13d38c8f5e6e5f1.png)
[basic knowledge of deep learning - 45] distance calculation methods commonly used in machine learning

JS 事件监听 鼠标 键盘 表单 页面 onclick onkeydown onChange

JS 寻找所有节点sibling childNodes children

Session攻击
![[RCTF2015]EasySQL-1|SQL注入](/img/69/aa1fc60ecf9a0702d35d876e8c3dda.png)
[RCTF2015]EasySQL-1|SQL注入
![[basic knowledge of deep learning - 42] detailed explanation of logistic regression](/img/74/d7d1562ada4671864961721b9a1baf.png)
[basic knowledge of deep learning - 42] detailed explanation of logistic regression

JS find all nodes sibling childNodes children

VS2017#include 'xxx.h'
随机推荐
Optimization of fixed number of cycles in embedded C language
SQlife(数据库)
Matplotlib(基本用法)
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
RadioGroup(单选框)
Introduction to several wireless protocols
Count the six weapons of the domestic interface cooperation platform!
记一次无准备的实习面试
[basic knowledge of in-depth learning - 40] Why does CNN have more advantages than DNN in the field of images
Summenudemo (submenu)
GestureOverlayView(手势识别2)
JS 事件监听 鼠标 键盘 表单 页面 onclick onkeydown onChange
Intel launched the world's smallest high-resolution lidar, priced at only $349
【深度学习基础知识 - 39】BN、LN、WN的比较
首发骁龙765G!Redmi K30 5G版发布:支持5G双模120Hz屏,定价1999元起
rxbinding
【深度学习基础知识 - 41】深度学习快速入门学习资料
[daily accumulation - 07] CUDA multi version switching
SQLServer 2008中事务日志已满问题处理
[basic knowledge of deep learning - 44] the method of realizing multiple classification by logistic regression