查找数据库的三种方式 DB facade(原始查找)查询构造Eloquent ORM新建数据表 //示例表 create table if not exits student( ‘id’ int auto_increment primaary key, ‘name’ varchar(255) not null default “”comment’姓名’, ‘age’ tinyint usigned not null defa…
三元表达式 在以前,在诸如比较两个数大小的时候,通常的写法都是下面的样子 if x > y:print("the max is x")
else:print("the max is y") 三元表达式的语法为: True if expression else False 现在可以个体三元表达式…