noteswiki

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2021年11月8日

摘要: 1.前提 安装Jupyter Notebook的前提是需要安装了Python(3.3版本及以上,或2.7版本) 2.安装方法 2.1使用基于Anaconda管理器安装ipthon jupyter的安装可以使用Anaconda软件进行安装 2.2依赖于ipython内核进行安装 如果没有安装pytho 阅读全文
posted @ 2021-11-08 17:31 noteswiki 阅读(805) 评论(0) 推荐(0) 编辑

摘要: 1.查看pip版本和路径 pip --version 2.升级pip pip install -U pip 3.使用pip安装Packange pip install packange_name #default 最新版本 pip install packange_name=2.0.3 #指定版本 阅读全文
posted @ 2021-11-08 16:21 noteswiki 阅读(32) 评论(0) 推荐(0) 编辑

2020年12月16日

摘要: Python字典可存储任意类型对象,如字符串、数字、元组…… 优点:取值方便,速度快 1,创建字典 字典由键(key)和对应值(value)成对组成。字典也被称作关联数组或哈希表。基本语法如下: dict = {'Alice': '21', 'Beth': '33', 'Cecil': '26'} 阅读全文
posted @ 2020-12-16 00:22 noteswiki 阅读(83) 评论(0) 推荐(0) 编辑

2016年11月23日

摘要: 验证字符串格式 1)判断字符串是否是常见数据类型,decimal,foalt,double,datetime,int等等 2)验证字符串符合特定规则 (1)邮箱地址,IP地址 (2)纯数字,纯字母(大写字母/小写字母),数字与字母 (3)电话号码,手机号码,出生日期 电子邮件格式、固定电话号码和手机 阅读全文
posted @ 2016-11-23 22:46 noteswiki 阅读(6290) 评论(0) 推荐(1) 编辑

2016年10月30日

摘要: var query = (from x in a.AsEnumerable() join y in b.AsEnumerable() on x.Field("col1") equals y.Field("col1") select new { col1= y.Field("col1"), col2=x.Field("col2") }).To... 阅读全文
posted @ 2016-10-30 22:03 noteswiki 阅读(461) 评论(0) 推荐(0) 编辑

摘要: DateTime ConvertDate = DateTime.ParseExact("20140504", "yyyyMMdd", null, System.Globalization.DateTimeStyles.AllowWhiteSpaces).ToString("yyyy-MM-dd"); DateTime.ParseExact("18/05/2014", "dd/MM/yyyy"... 阅读全文
posted @ 2016-10-30 21:58 noteswiki 阅读(958) 评论(0) 推荐(0) 编辑

摘要: class A { public int id { get; set; } public string name { get; set; } } class B { public int id { get; set; } public int age { ge... 阅读全文
posted @ 2016-10-30 21:56 noteswiki 阅读(1777) 评论(0) 推荐(0) 编辑

摘要: private static void DataTableToSQLServer( DataTable dt) { string connectionString = GetConnectionString(); using (SqlConnection destinationConnection =new Sql... 阅读全文
posted @ 2016-10-30 21:50 noteswiki 阅读(135) 评论(0) 推荐(0) 编辑

摘要: SqlBulkcopy Loop Insert 阅读全文
posted @ 2016-10-30 17:04 noteswiki 阅读(824) 评论(0) 推荐(0) 编辑

摘要: or File.ReadLines would read the file line by line. .Select(r => r.TrimEnd('#')) would remove the # from end of the line .Select(line => line.Split(', 阅读全文
posted @ 2016-10-30 15:09 noteswiki 阅读(2851) 评论(0) 推荐(0) 编辑