victory的博客

长安一片月,万户捣衣声

0%

68个python内置函数详解

内置函数就是Python给你提供的,拿来直接用的函数,比如print.,input等。
截止到python版本3.6.2 ,python一共提供了68个内置函数,具体如下👇

abs()           dict()        help()         min()         setattr()
all()           dir()         hex()          next()        slice() 
any()           divmod()      id()           object()      sorted() 
ascii()         enumerate()   input()        oct()         staticmethod() 
bin()           eval()        int()          open()        str() 
bool()          exec()        isinstance()   ord()         sum() 
bytearray()     filter()       issubclass()   pow()         super() 
bytes()         float()        iter()         print()       tuple() 
callable()      format()      len()          property()    type() 
chr()           frozenset()   list()         range()       vars() 
classmethod()   getattr()     locals()       repr()        zip() 
compile()       globals()     map()          reversed()    __import__() 
complex()       hasattr()     max()          round() 
delattr()       hash()        memoryview()   set()
阅读全文 »

MySQL常见的表操作语句

1.表的创建

create table table_name(
id int auto_increment primary key not null,
name varchar(11) not null
);

2.增加记录

insert into table_name values()
insert into table_name values(),(),()
insert into table_name() values()
insert into table_name() values(),(),()

3.修改记录

update table_name set attr=val where...

4.删除记录

delete from table_name where...

5.表查询

条件:select * from table_name where...
聚合:select count(*)|min()|max()|avg() from table_name
分组:select gender,count(*) from table_name group by gender having....
排序:select * from table_name order by...
分页:select * from table_name limit start,count

连接查询:点击此处,查看更多关于连接查询!!!