python关键字,运算符
2024-08-28 05:04:40
关键字:
and
且
or
或
not
否
del
import
导入
from
import的来源
while
while循环
for
for循环
if elif else
条件结构
break
continue
global
声明全局变量
with as
assert
断言
pass
表示这是空块,eg,创建一个没有内容的类
try
异常处理
except
catch
yield
finally
break
print
打印
class
类
exec
in
遍历用,for循环或列表
raise
引发一个异常
is
判断两个对象是否相等
return
函数返回值
def
定义函数
lambda
lamda表达式
运算符:
** | Exponentiation (raise to the power) |
~ + - | Complement, unary plus and minus (method names for the last two are +@ and -@) |
* / % // | Multiply, divide, modulo and floor division |
+ - | Addition and subtraction |
>> << | Right and left bitwise shift |
& | Bitwise 'AND' |
^ | | Bitwise exclusive OR' and regular OR' |
<= < > >= | Comparison operators |
<> == != | Equality operators |
= %= /= //= -= += *= **= | Assignment operators |
is is not | Identity operators |
in not in | Membership operators |
not or and | Logical operators |
最新文章
- Orcale 数据库客户端PL/SQL中文乱码的问题
- 一行实现QQ群组头像,微信群组,圆角等效果. 并支持url直接加载图片
- 使用FIO对SATA、SSD和PCIe Flash进行测试
- codeforces 505A. Mr. Kitayuta&#39;s Gift 解题报告
- nop 添加字段
- Android开源框架ImageLoader的完美例子
- SOA之(3)——面向服务计算基础
- spring security的标签库
- mysql学习链接
- 如何用angularjs制作一个完整的表格之二__表格分页功能
- Sybase常用函数
- Windows移动开发(一)——登堂入室
- Git批量删除
- 访问mysql出现“Access denied for user root@localhost”(using password:NO)解决方案
- ios zxing扫码问题
- Docker for Windows 使用 VMware WorkStation
- MongoDB学习(查找文档和其他数据查找操作)
- js过滤html标签
- Android 屏幕适配插件 ScreenMatch
- C#反射の一个泛型反射实现的网络请求框架