1)Trim方法string tt=" aaa "; tt=tt.Trim() 去字符串首尾空格的函数tt=tt.TrimEnd() 去掉字符串尾空格tt=tt.TrimStart() 去掉字符串首空格
膜膜膜,常数挺小的。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define PAU putchar(' ') 8 #define ENT putchar('\n') 9 #defi...
分类:
其他好文 时间:
2015-06-14 19:53:02
阅读次数:
336
class Testa { public static void main(String[] args) { String aa="aaa"; String bb="bbb"+aa; aa="cccc"; System.out.println(bb); } } 输出的是 “bbbaaa ...
分类:
编程语言 时间:
2015-06-14 12:14:51
阅读次数:
136
1)Trim方法string tt=" aaa ";tt=tt.Trim() 去字符串首尾空格的函数tt=tt.TrimEnd() 去掉字符串尾空格tt=tt.TrimStart() 去掉字符串首空格(2)通过ASCII码值去掉字符中的空格由于空格的ASCII码值是32,因此,在去掉字符串中所有的空...
分类:
其他好文 时间:
2015-06-13 21:32:22
阅读次数:
137
实例:1,http://localhost/aaa/(打开aaa中的index.php)结果:$_SERVER['QUERY_STRING'] = "";$_SERVER['REQUEST_URI']= "/aaa/";$_SERVER['SCRIPT_NAME']= "/aaa/index.php...
分类:
其他好文 时间:
2015-06-13 20:04:01
阅读次数:
96
执行命令system-view,进入系统视图。执行命令aaa,进入AAA视图。执行命令local-useruser-namepassword[cipherpassword|irreversible-cipherirreversible-cipher-password],并交互输入密码,配置本地用户名和密码。执行命令local-useruser-namepriviledgelevel15(level可以自..
分类:
Web程序 时间:
2015-06-11 00:27:10
阅读次数:
252
目标:动态网页爬取
说明:这里的动态网页指几种可能:1)需要用户交互,如常见的登录操作;2)网页通过JS / AJAX动态生成,如一个html里有,通过JS生成aaa。
这里用了WebCollector 2进行爬虫,这东东也方便,不过要支持动态关键还是要靠另外一个API -- selenium 2(集成htmlunit 和 phantomjs).
1)需要登录后的爬取,如新浪微博...
分类:
Web程序 时间:
2015-06-10 19:28:54
阅读次数:
1559
使用GUI实现窗体的主要代码using UnityEngine;using System.Collections;public class MyGUI : MonoBehaviour { //public Texture aaa; //public string bbb; //pu...
分类:
其他好文 时间:
2015-06-09 19:26:33
阅读次数:
236
1、数据的挂载 在函数中设置数据 function Aaa($scope){ $scope.name = 'hello'; $scope.age = '20'; }2、ng-controller 这是一个控制器,用于连接数据和视图3、双大括号表达式 这里就...
分类:
Web程序 时间:
2015-06-09 19:11:58
阅读次数:
97
贴图的描述方式有两种// 1、aaa.jpg// 2、file='aaa.jpg' res='' restype='0' dest='0,0,0,0' source='0,0,0,0' corner='0,0,0,0'// mask='#FF0000' fade='255' hole='false'...
分类:
其他好文 时间:
2015-06-09 13:34:44
阅读次数:
261