码迷,mamicode.com
首页 >  
搜索关键字:string+    ( 95377个结果
运维的我要学开发--Python(3)
本文均来自PythonCookbook,本博文励志将Cookbook中的string部位,文件,面向对象编程部分完成,本系列博文陆续还会介绍flask框架,每篇博文都以一个个小例子展示。#-*-coding:utf-8-*- ‘‘‘ 检查一个文本是字符串还是二进制 思想:如果字符串中包含了空值或者其中含有超过30%的..
分类:编程语言   时间:2014-05-03 00:55:27    阅读次数:375
vim编辑器的使用
模式切换的命令:键 进入模式 说明 命令模式 (从编辑模式返回命令模式)按 i,a, o “插入” 编辑模式 (在当前光标前开始插入)i :在光标前插入 I 光标所在行的行首开始插入a:在光标后开始插入 A:在本行末开始插入o:在光标所在行下另起一行插入 O:在光标上插入新行在命令模式下不要按其它键...
分类:其他好文   时间:2014-05-02 16:17:28    阅读次数:253
Unity3D中定时器的使用
源地址:http://unity3d.9tech.cn/news/2014/0402/40149.html在游戏设计过程中定时器是必不可少的工具,我们知道update方法是MonoBehavior中一个人人皆知的定时器方法,每帧都在调用,那还有其他什么定时器的方法呢,这里介绍一下。1.Invoke(...
分类:其他好文   时间:2014-05-02 15:27:43    阅读次数:438
UVA 之401 - Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...
分类:其他好文   时间:2014-05-02 10:33:09    阅读次数:332
C# 修饰符
const : 指定字段或者本地变量不能被修改。readonly : 声明一个字段只能在定义的时候赋值或者在构造函数中赋值。( readonly 可以有不同的值,取决于构造函数的值。 const 是一个编译时的常量,readonly是一个运行时的常量,example:public static re...
分类:其他好文   时间:2014-05-02 09:26:05    阅读次数:304
Object C (2) --- NSString的创建
NSString *str1 = @"a string"; NSString *str2 = [[NSString alloc] init]; str2 = @"a string"; [str2 release]; NSString *str3 = [[NSString...
分类:其他好文   时间:2014-05-02 09:04:17    阅读次数:185
Leetcode: Length of Last Word
许多次通过,主要是没有考虑到这种情况:“A C ”结尾有多重空格的情况。 1 public class Solution { 2 public int lengthOfLastWord(String s) { 3 int j, k; 4 if(s == nu...
分类:其他好文   时间:2014-05-02 08:21:00    阅读次数:300
[转]java将字符串写入文件中
Java代码 importjava.io.File;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;importjava.io.FileWriter;importjava.io.IOException;import...
分类:编程语言   时间:2014-05-02 06:13:08    阅读次数:477
MVC4.0 bug 神奇的是事情 bool 值变成了 onclick ,非常奇怪的
foreach (var item in ViewBag.PhotoGroupList) {// 这里很奇怪 item.IS_DISPLAY 是布尔值如果直接写 @item.IS_DISPLAY 如果值为True会变成值会变成 ‘onclick’ ,fa...
分类:Web程序   时间:2014-05-02 06:00:10    阅读次数:399
C#简单工厂模式(文件案例)
usingSystem; usingSystem.Collections.Generic; usingSystem.IO; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespace读文件案例 { classProgram { staticvoidMain(string[]args) { Console.WriteLine("请输入文件名"); stringfileName=Console.Read..
分类:其他好文   时间:2014-05-02 04:00:58    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!