我们知道,win7系统自带有讲述人,即可以机器读出当前内容,具体可以将电脑锁定,然后点击左下角的按钮即可。之前在用Matlab写扫雷游戏的时候,也曾经调用过讲述人来进行游戏的语音提示。具体的Matlab脚本文件如下:
sp=actxserver('SAPI.SpVoice');sp.Speak('你好,欢迎来到西安电子科技大学!Hello,Welcome to XD University!')...
分类:
其他好文 时间:
2014-07-31 00:08:35
阅读次数:
440
Inferring Type From Context 上下文类型判断 因为排序的闭包是作为一个参数传递给函数,因此Swift可以判定这个参数的类型和根据sort函数第二个参数判断返回值的类型.这个参数的类型是(String, String) -> Bool,这意味着 String,Strin...
分类:
移动开发 时间:
2014-07-30 23:22:15
阅读次数:
274
初初认识jQuery的not选择器,想要实现的功能是,点击第一个div,显示第二个div,点击第一个div以外的地方,隐藏第二个div。具体代码如下:Welcome to My Homepage我是按钮I live in Duckburg.My best friend is Mickey.需要注意的...
分类:
Web程序 时间:
2014-07-29 17:41:02
阅读次数:
192
控制器controller下的welcome.phppublicfunctiondoJson(){
$data=array(‘a‘,‘b‘,‘c‘,‘d‘);
if($_POST[‘k‘])
echo$data=json_encode($data);
}视图view下的json.php<!DOCTYPEHTML>
<html>
<head>
<scriptsrc="<?phpechobase_url();?>static/js/jqu..
分类:
Web程序 时间:
2014-07-29 15:57:59
阅读次数:
266
Welcome to Git (version 1.9.4-preview20140611)Run 'git help git' to display the help index.Run 'git help ' to display help for specific commands.Tingk...
分类:
其他好文 时间:
2014-07-27 22:19:09
阅读次数:
189
不同的错误处理方法:
简单的die()语句自定义错误函数和错误触发器错误报告
基本的错误处理:使用die()函数
if(!file_exists("welcome.txt")){
die("FIle not found");
}else{
$file=fopen("welcome.txt","r");
}
或者
$file=fopen("web...
分类:
Web程序 时间:
2014-07-25 11:10:01
阅读次数:
243
1、GETName: Age: 当用户点击提交按钮时,发送的 URL 会类似这样:http://www.W3CSchool.cn/welcome.php?name=Peter&age=37"welcome.php" 文件现在可以通过 $_GET 变量来获取表单数据了。注释:在使用 $_GET 变量时...
分类:
其他好文 时间:
2014-07-25 10:51:51
阅读次数:
242
DescriptionJapan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the ...
分类:
其他好文 时间:
2014-07-24 21:43:52
阅读次数:
270
Appium运行的时候,查看到log输出为:info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)info: Appium REST http interface listener started o...
分类:
移动开发 时间:
2014-07-22 23:02:52
阅读次数:
433
Problem DPiotr's AntsTime Limit: 2 seconds"One thing is for certain: there is no stopping them;the ants will soon be here. And I, for one, welcome ou....
分类:
其他好文 时间:
2014-07-22 22:36:53
阅读次数:
363