用的也是很老的OLE技术: report代码直接call的MS的sound engine,通过sapi.dll暴露出来, 这个report只是call了dll里其中一个speak方法: 要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码: ...
分类:
其他好文 时间:
2018-03-26 23:31:48
阅读次数:
172
题目连接: acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1109 题目描述: We all know that FatMouse doesn't speak English. But now he has to be prepared ...
分类:
其他好文 时间:
2018-03-11 14:34:43
阅读次数:
200
The Little Prince-12/07 "My little man, where do you come from? What is this ‘where I live,‘ of which you speak? Where do you want to take your sheep? ...
分类:
其他好文 时间:
2017-12-08 01:25:38
阅读次数:
147
#coding:utf8 import win32com.client speaker = win32com.client.Dispatch("SAPI.SpVoice") while True: message=input("请输入内容:") speaker.Speak(message) ...
分类:
编程语言 时间:
2017-11-27 14:17:20
阅读次数:
316
一. 截图是想要说明,我在构造函数中调用一般函数时,用this.speak(); 居然可以运行,省略this.也是可以的。但是如果是构造函数之间调用,写成this.Person(String name); 就不行。 我知道无论是构造函数调用一般函数,还是构造调用构造函数用,p.调用绝对是不可以的,对 ...
分类:
编程语言 时间:
2017-11-02 23:17:45
阅读次数:
204
var events = require('events');var eventEmitter=new events.EventEmitter();eventEmitter.on('speak',function (msg) { console.log(msg+': speak');})eventE ...
分类:
Web程序 时间:
2017-11-02 11:12:42
阅读次数:
183
恢复内容开始 Method对象可以得到任何一个类的任何方法的定义(只需要传入方法的名字和参数即可) class Ming { private void speak() { System.out.println("ff"); } } public class Main { public static ...
分类:
编程语言 时间:
2017-10-27 01:19:21
阅读次数:
123
如下代码: 在某些情况下需要定义成员方法,比如说如上代码定义了"人"这个类,可是这个"人"只有年龄、姓名,但没有行为方式;实际上,做为人来说有很多共同的行为方式,比如:会走、会说。而这些行为可以在Java程序中用"方法"来概括。 ①添加speak成员方法,输出:hello world ②添加clac ...
分类:
其他好文 时间:
2017-09-25 13:13:48
阅读次数:
128
(1) /*通过this传递了对象的引用*/ function identify() { console.log(this); //this指向不是window 而是call改变指向的对象 return this.name.toUpperCase(); } function speak() { va ...
分类:
其他好文 时间:
2017-09-09 15:17:57
阅读次数:
157
expr函数:可以用来求表达式的值 expr命令可以替代let命令,使参数进行算法,除此之外还有$(()),用法如下i=12a=5c=$((i*a))echo "c=$c"输出结果为60 string="speak English"expr length "$string"求string的值的长度e ...
分类:
系统相关 时间:
2017-08-08 19:37:15
阅读次数:
223