usingSystem;usingSystem.Text;namespaceConsoleApplication{classChineseCode{publicstaticvoidMain(){//获取GB2312编码页(表)Encodinggb=Encoding.GetEncoding("gb23...
自己写的小例子,就是把本地的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
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
大家在学习CSS的时候肯定会遇到关于文本对齐的问题,一般来说,我们使用text-align:center;就可以解决啦,是的,但是这是针对于一般的情况,对于option是没有用的。那么,今天笔者给大家介绍一种行之有效的方法,那就是使用padding来解决。好啦,闲言少叙,我们进入正题。
用一个例子解释就可以啦:
代码如下:
0
1
2
3
4
5...
分类:
其他好文 时间:
2014-10-29 00:30:43
阅读次数:
305
在QT中,在非构造函数中添加控件步骤如下QPushButton *btn = new QPushButton(this);btn->setGeometry(0,0,50,50);btn->setText(“Dynamic”);btn->show();//添加本行代码,控件才能显示出来
分类:
其他好文 时间:
2014-10-28 23:53:44
阅读次数:
1064
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace patial{ class Program { static void Main(stri...
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplicationTest{ class Program { stati...
在项目开发中,写jQuery代码有时候会搞混淆一下东西,现在写一下demo来列出jQuery的.html(),.text(),.val()的区别。 1. html()取得第一个匹配元素的内容,简单来说就是所取得的标签所包含的所有东西。 假如括号中有带val的话,最简单的理解就是将上一步取得...
分类:
Web程序 时间:
2014-10-28 23:32:36
阅读次数:
293
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace @sealed{ class Program { static void Main(str...