- 博客(35)
- 收藏
- 关注
原创 关于svn cleanup失败
不知道什么原因,已经发生两次了。然后再更新就会出现Previous operation has not finished; run 'cleanup' if it was interrupted Error: Please execute the 'Cleanup' command. Completed!:用的是比较方便的方法解决的,打开cmd进入到项目目录
2017-11-14 13:38:04
293
原创 <wpf>关于TreeView问题
在TreeView显示两条滚动轴的时候,两条轴相交的Corner跟滚动轴背景颜色不一致的问题。https://stackoverflow.com/questions/12373248/annoying-square-where-scrollbars-meet
2017-09-21 14:25:58
311
原创 求斐波那契数列第三十个数
1,1,2,3,5,8,13,21,,,, static void Main(string[] args) { Console.WriteLine(Fib(30)); Console.ReadKey(); } static int Fib(int n) {
2017-07-07 22:26:52
3181
原创 数据类型
c# 数据类型分为三类: 值类型(Values Types) 引用类型(Reference Types) 指针类型(Pointer Types)
2017-07-05 21:38:12
235
原创 DriveInfo类
一个获取硬盘信息的类。DriveInfo[] drives = DriveInfo.GetDrives(); foreach(var i in drives) { Console.WriteLine(i.Name); Console.WriteLine(i.DriveFormat)
2017-07-04 21:15:06
579
原创 win10系统 sqlserver 安装
安装了好几个小时,服务终于启动了。嘤嘤嘤。。。错误日志如下。2017-07-01 20:51:38.07 Server Microsoft SQL Server 2016 (SP1) (KB3182545) - 13.0.4001.0 (X64) Oct 28 2016 18:17:30 Copyright (c) Microsoft Corporation D
2017-07-01 21:28:11
957
原创 冒泡排序
using System;namespace Demo{ class Program { static void Main(string[] args) { int[] arr = { 288, 64, 238, 778, 6, 0, 67, 55, 29 }; int tmp;
2017-06-28 22:47:48
225
原创 new和override关键字
1,virtual 修饰父类成员时。子类可以用new也可以用override。1,new 关键字显示隐藏子类继承的父类成员,子类引用指向子类对象的时候,依旧调用父类成员。2,override 关键字覆盖子类继承的父类成员,子类引用指向子类对象的时候,调用子类成员,形成多态。
2017-04-22 11:05:14
252
原创 c#基础之委托
1,委托是方法的类型。2,把方法跟委托绑定之前,一定要确保方法存在 把方法定义为静态方法或者创建类的实例。如果为static方法,委托指针指向null,如果为对象实例方法,则指向对象。
2017-04-19 06:38:56
193
原创 C#基础(二)
三,1,如果兼容可以使用隐式和显式类型转换,如果不兼容,可以使用Convert类。2,i++ ++i 区别表现在运算式中,,先加减再打印,先打印再加减3,闰年 year/400==0 || (year/4==0 && year /100 != 0)4,
2017-04-08 21:57:12
221
原创 C#基础
C#基础(一)一,.net1,.net/dotnet:一般指.net framework框架,一种平台;2,.net都能干什么:桌面应用程序,ASP.NET(csdn,招商银行),手机开发(wp8),Unity3D游戏开发开发或者虚拟现实。3,.net两种交互模式:(1),C/S 客户机(client)/服务器(server)模式,qq;(2) B/S 浏览器(Brow
2017-04-08 16:22:48
258
原创 五十音图平假名随机生成
import java.util.Random;public class Fifity { public static void main(String[] args) { int a; int b; String tem; Random rand = new Random(); String arr[] = {"あ", "い", "う", "え", "お",
2016-07-06 20:52:59
7887
原创 msketrans
maketrans()# -*- coding: utf-8 -*-from string import maketransa=maketrans('','')[97:123]print a
2016-03-29 19:49:03
263
原创 求两个整数的最大公约数和最小公倍数
求两个数的最大公约数和最小公倍数# -*- coding: utf-8 -*-x = int(raw_input(r'请输入一个正整数:'))y = int(raw_input(r'请输入一个正整数:'))def hcf(x, y): if x > y: smaller = y else: smaller = x for i in range(smalle
2016-03-29 19:29:26
805
1
原创 join
join 把list里面的元素用分隔符连接起来,如果分隔符为空,则相当于把所有元素连接起来。a = ['a','b','c','d']s = "|".join(a)print ss = "".join(a)print s
2016-03-28 12:17:53
409
原创 如何在一个函数内修改一个全局变量
如何在一个函数内修改一个全局变量a = 1def add(): global a a = a + 1 print a add()
2016-03-24 18:53:36
6334
原创 计算1~100的和
计算1~100的和。s = sum(range(1, 101))print sprint type(range(1,3))s = 0for i in range(1, 101): s = s + iprint ss = reduce(lambda x, y : x + y, range(1, 101))print s
2016-03-24 18:47:14
1543
原创 eclipse + Pydev + Python
1,下载Pydev插件http://sourceforge.net/projects/pydev/files/。解压,把相应文件的内容拷贝到eclipse下。2,启动eclipse,Window ---> preferences --> Pydev ---> Python interpreter ---> New ---> Browse ---> C:\Python27\py
2016-03-21 19:24:02
285
原创 python
SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte把Notepad++改为 以UTF-8格式编码即可。
2016-01-24 20:26:19
346
原创 Python
FalseTraceback (most recent call last): File "Hello.py", line 9, in print(oxff == 255)NameError: name 'oxff' is not defined
2016-01-24 18:41:22
405
原创 bbs
javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
2015-12-29 13:58:40
298
原创 bbs
Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if expl
2015-12-26 10:30:19
335
原创 HelloWorldServlet
type Exception reportmessage Error instantiating servlet class HelloWorldServletdescription The server encountered an internal error that prevented it from fulfilling this request.exceptionjav
2015-12-16 09:40:40
420
原创 JDBC基础
java.sql.SQLSyntaxErrorException: ORA-00928: 缺失 SELECT 关键字import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;import java.sql.Statement;public class TestDML { p
2015-12-05 16:54:49
360
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人