2017年9月30日

c# 复制文件

摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ConsoleApplication2 { internal class Program { ... 阅读全文

posted @ 2017-09-30 17:07 靖康耻 阅读(131) 评论(0) 推荐(0) 编辑

c#基础之集合

摘要: using System; using System.Collections; using System.Collections.Generic; namespace ConsoleApplication2 { internal class Program { public static void Main(string[] args) { ... 阅读全文

posted @ 2017-09-30 12:14 靖康耻 阅读(143) 评论(0) 推荐(0) 编辑

找出子字符串在字符串中的所有索引

摘要: /// /// 找出子字符串在字符串中的所有索引,"ccc"在"ccccc"中认为只有一个 /// /// /// /// private static List AllIndexOf(string str, string subStr) { List... 阅读全文

posted @ 2017-09-30 08:15 靖康耻 阅读(533) 评论(0) 推荐(0) 编辑

2017年9月29日

c# 排序

摘要: 冒泡排序 选择排序 阅读全文

posted @ 2017-09-29 08:27 靖康耻 阅读(123) 评论(0) 推荐(0) 编辑

2017年9月28日

C#基础之枚举

摘要: using System; using System.Globalization; enum MyEnum { a, b, c } class Two { enum Bbb { x = 4, y, z = 99, xx, yy } public stati... 阅读全文

posted @ 2017-09-28 23:47 靖康耻 阅读(122) 评论(0) 推荐(0) 编辑

验证用户名不为空并且不存在

摘要: using System; using System.Globalization; using System.Linq.Expressions; class Program { public static void Main(string[] args) { var oneName = ""; var twoName = ""; ... 阅读全文

posted @ 2017-09-28 14:47 靖康耻 阅读(317) 评论(0) 推荐(0) 编辑

验证用户名和密码,输入三次不正确就锁定账号

摘要: using System; using System.Globalization; class Program { public static void Main(string[] args) { var count = 3; for (int i = 0; i /// 获得一个int类型的值 /// /// ... 阅读全文

posted @ 2017-09-28 14:35 靖康耻 阅读(366) 评论(0) 推荐(0) 编辑

c#基础

摘要: 1 using System; 2 using System.Globalization; 3 4 class Program 5 { 6 public static void Main(string[] args) 7 { 8 var year = GetInt(); 9 var month = 阅读全文

posted @ 2017-09-28 11:57 靖康耻 阅读(114) 评论(0) 推荐(0) 编辑

2017年9月24日

linux使用

摘要: 1.ubuntu下载地址: http://cn.ubuntu.com/download/ VMware-workstation下载地址: http://sw.bos.baidu.com/sw-search-sp/software/aff3469fe5f99/VMware-workstation-fu 阅读全文

posted @ 2017-09-24 19:44 靖康耻 阅读(109) 评论(0) 推荐(0) 编辑

2017年9月23日

python之logging模块

摘要: from logging import * import sys def main(): basicConfig(level=WARNING, stream=sys.stdout, # filename='log.log', # filemode='a', ... 阅读全文

posted @ 2017-09-23 16:36 靖康耻 阅读(132) 评论(0) 推荐(0) 编辑

导航