码迷,mamicode.com
首页 >  
搜索关键字:text    ( 52583个结果
C#生成随机汉字
usingSystem;usingSystem.Text;namespaceConsoleApplication{classChineseCode{publicstaticvoidMain(){//获取GB2312编码页(表)Encodinggb=Encoding.GetEncoding("gb23...
分类:Windows程序   时间:2014-10-29 10:29:40    阅读次数:289
Python interview - text to JSON & zip & with statement
自己写的小例子,就是把本地的txt文件转换为JSON格式输出。 data source 简单的1-10存一个文件, A-J 存一个文件 import json book = 'C:\Python27\\book.txt' date = 'C:\Python27\date.txt' book_list = [] date_list = [] with open(book) ...
分类:编程语言   时间:2014-10-29 09:15:08    阅读次数:245
编写自定义特性
===========================Document.csusingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { [AttributeUsage(AttributeTargets.Property,//该特性能够应用的范围(只能用于属..
分类:其他好文   时间:2014-10-29 02:07:55    阅读次数:189
ArcEngine - 地图和布局同步
1,定义同步的类: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Engine.App_Code { 7 ...
分类:其他好文   时间:2014-10-29 01:41:36    阅读次数:766
select option text-align:center的问题
大家在学习CSS的时候肯定会遇到关于文本对齐的问题,一般来说,我们使用text-align:center;就可以解决啦,是的,但是这是针对于一般的情况,对于option是没有用的。那么,今天笔者给大家介绍一种行之有效的方法,那就是使用padding来解决。好啦,闲言少叙,我们进入正题。 用一个例子解释就可以啦: 代码如下: 0 1 2 3 4 5...
分类:其他好文   时间:2014-10-29 00:30:43    阅读次数:305
QT动态添加控件
在QT中,在非构造函数中添加控件步骤如下QPushButton *btn = new QPushButton(this);btn->setGeometry(0,0,50,50);btn->setText(“Dynamic”);btn->show();//添加本行代码,控件才能显示出来
分类:其他好文   时间:2014-10-28 23:53:44    阅读次数:1064
C# 部分类使用partial修饰
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace patial{ class Program { static void Main(stri...
分类:Windows程序   时间:2014-10-28 23:52:04    阅读次数:275
C# 面向对象的new关键字的使用
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplicationTest{ class Program { stati...
分类:Windows程序   时间:2014-10-28 23:38:45    阅读次数:357
jQuery中的html,val,text区别
在项目开发中,写jQuery代码有时候会搞混淆一下东西,现在写一下demo来列出jQuery的.html(),.text(),.val()的区别。 1. html()取得第一个匹配元素的内容,简单来说就是所取得的标签所包含的所有东西。 假如括号中有带val的话,最简单的理解就是将上一步取得...
分类:Web程序   时间:2014-10-28 23:32:36    阅读次数:293
C# 密封类使用sealed修饰
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace @sealed{ class Program { static void Main(str...
分类:Windows程序   时间:2014-10-28 23:28:36    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!