摘要: Connectionstring:connectionString="Data Source=.;AttachDBFilename= aa.mdf;User ID=sa;Password=sa"AttachDBFilename = ... //automaticly attach the db connectionString="Data Source=.;database = aa.mdf;Us... 阅读全文
posted @ 2010-06-16 17:59 greencolor 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: import函数import mathmath.floor(32.9)from模块import函数from math import sqrtsqrt(9)使用了"from模块import函数"这种形式的import命令之后,就可以直接使用函数,而不需要模块名作为前缀。Defining Functions>>> def fib(n): ... a, b = 0, 1... whil... 阅读全文
posted @ 2010-06-16 16:33 greencolor 阅读(157) 评论(0) 推荐(0) 编辑