2014年5月2日

python sqlite3查看数据库所有表(table)

摘要: #coding:utf-8import sqlite3'''sqlite3存在系统表sqlite_master,结构如下:sqlite_master( type TEXT, #类型:table-表,index-索引,view-视图 name TEXT, #名称:表名,... 阅读全文

posted @ 2014-05-02 16:32 SpringStudio 阅读(9439) 评论(0) 推荐(1) 编辑

python 元组和字典中元素作为函数调用参数传递

摘要: 模式1.def test1(*args): test3(*args)def test2(**kargs): test3(**kargs)def test3(a, b): print(a,b)test1(1,2)test2(a=1,b=2)模式2.def test4(a= ()): ... 阅读全文

posted @ 2014-05-02 15:52 SpringStudio 阅读(7707) 评论(0) 推荐(0) 编辑

Python不定参数函数

摘要: 1. 元组形式def test1(*args): print('################test1################') print(type(args)) print(args)正确调用:test1(1, 2) #args在函数体内部为tuple类型... 阅读全文

posted @ 2014-05-02 15:41 SpringStudio 阅读(8375) 评论(0) 推荐(0) 编辑

导航