查找數據庫的三種方式 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 現在可以個體三元表達式…