码迷,mamicode.com
首页 >  
搜索关键字:text    ( 52583个结果
数据抓取的一个类,包含一些常用的方法
原文:数据抓取的一个类,包含一些常用的方法usingSystem;usingSystem.Configuration;usingSystem.IO;usingSystem.Net;usingSystem.Text;usingSystem.Text.RegularExpressions;namespa...
分类:其他好文   时间:2014-07-07 12:37:04    阅读次数:205
System.IO.StreamWriter
string path = @"D:\a.txt";System.IO.StreamWriter swOut = new System.IO.StreamWriter(path, false, System.Text.Encoding.Default);swOut.WriteLine(strA);s...
分类:其他好文   时间:2014-07-07 12:28:43    阅读次数:253
java 格式化日期(DateFormat)
import java.text.DateFormat;import java.util.Date;/*** 格式化时间类 DateFormat.FULL = 0 * DateFormat.DEFAULT = 2 * DateFormat.LONG = 1* DateFormat.MEDIUM = ...
分类:编程语言   时间:2014-07-07 12:24:55    阅读次数:245
android ListView 获取点击的选项
需要调用listView的setOnItemClickListener方法 重写OnItemClickListener类的onItemClick 方法,onItemClick 方法有三个参数@Override public void onItemClick(AdapterView arg0, V.....
分类:移动开发   时间:2014-07-07 11:56:58    阅读次数:235
用C#读取txt文件的方法
1、使用FileStream读写文件 文件头: using System;using System.Collections.Generic;using System.Text;using System.IO; 读文件核心代码: byte[] byData = new byte[100];char[]...
分类:其他好文   时间:2014-07-07 11:52:47    阅读次数:151
C#:使用ListView动态添加数据一直闪烁的解决办法
首先,自定义一个类ListViewNF,继承自System.Windows.Forms.ListViewusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Win...
分类:其他好文   时间:2014-07-07 11:41:58    阅读次数:213
10个你必须知道的jQueryMobile代码片段(转)
1、在列表项和按钮上禁用文本截断 如果你的列表项或者按钮上是一个很长的文本,它将会被jQuery Mobile自动截断,要禁用这个截断设置,需要在CSS选择器上添加属性"white-space:normal"。例如,在按钮禁止截断: .ui-btn-text{ white-space:normal;...
分类:Web程序   时间:2014-07-07 09:37:53    阅读次数:225
Beatiful Soup获取淘宝商品详情
Beatiful Soup生成商品详情页面的剖析树,主要函数:findAll(name=None, attrs={}, recursive=True, text=None, limit=None, **kwargs)利用findAll先获取标签范围的内容,再利用正则表达式进行匹配输出。Beatifu...
分类:其他好文   时间:2014-07-03 23:04:31    阅读次数:260
android.intent.category.LAUNCHER和android.intent.action.MAIN
一个应用程序可以有多个Activity,每个Activity是同级别的,那么在启动程序时,最先启动哪个Activity呢?有些程序可能需要显示在程序列表里,有些不需要。怎么定义呢?android.intent.action.MAIN决定应用程序最先启动的Activityandroid.intent....
分类:移动开发   时间:2014-07-03 22:25:34    阅读次数:188
浮点数转换成字符串函数
sprintf函数太大,在STM8上面根本不敢用,动不动就.text overflow。为了将采集的数值通过串口上传到计算机,只能自己写了一个浮点数转换成字符串的函数: #include #include static char table[]={'0', '1', '2', '3', '4', '...
分类:其他好文   时间:2014-07-02 14:54:49    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!