05 2020 档案
摘要:一、约束	1)主键 主键约束=非空约束+唯一约束 主键可以是一个列或者多个列 1)创表添加多个列作为主键 create table score1( sid int not null, cid int not null, PRIMARY key(sid,cid) ); 2)删除主键约束 alter t
        阅读全文
            
摘要:一、约束	1)主键 主键约束=非空约束+唯一约束 主键可以是一个列或者多个列 1)创表添加多个列作为主键 create table score1( sid int not null, cid int not null, PRIMARY key(sid,cid) ); 2)删除主键约束 alter t
        阅读全文
            
摘要:1、mysql安装分为两种,一种是msi格式的,一种是zip格式的,zip格式相当于绿色版,不需要安装,只需解压缩之后就可以使用了,但是要进行配置。msi格式是安装版。 2、mysql官网下载 https://www.mysql.com/ 3、安装(以.zip包为例) 1)一、配置my.ini或者m
        阅读全文
            
摘要:import os,stat#打开不存在的文件file1 = open("./Anna.txt","w",encoding='utf-8')file1.close()file1 = open("./Anna1.txt","a",encoding='utf-8')file1.close()file1 
        阅读全文
            
摘要:函数参数 位置参数 关键字参数 默认参数 不定长参数 函数传参 嵌套函数 多层嵌套 递归函数 1.自己调用自己 2.两个函数相互调用 匿名函数 lambda x,y:x+y
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号