解:1.37 (define?tolerance?0.00001)
(define?(average?x?y)
??(/?(+?x?y)?2.0))
(define?(fixed-point?f?first-guess)
??(define?(close-enought??v1?v2)
????(<?(abs?(-?v1?v2)...
分类:
其他好文 时间:
2014-08-28 01:01:08
阅读次数:
238
foreach ? ?元素的属性主要有 item,index,collection,open,separator,close。 item ??????表示集合中每一个元素进行迭代时的别名. index ????指 定一个名字,用于表示在迭代过程中,每次迭代到的...
分类:
其他好文 时间:
2014-08-27 11:13:08
阅读次数:
317
基于TCP(面向连接)的Socket编程一、客户端:1、打开一个套接字(Socket);2、发起连接请求(connect);3、如果连接成功,则进行数据交换(read、write、send、recv);4、数据交换完成,关闭连接(shutdown、close);二、服务器端:1、打开一个套接字(So...
#!/usr/bin/python#-*-encoding:UTF-8-*-importsysiflen(sys.argv)<2:print(‘Usage:pythonsys.argv[0]FileName‘)sys.exit(1)else:print(‘\nunix2dos.pyexecutionsuccessfully!\n‘)File=sys.argv[1]fileobj=open(File,‘rU‘)try:allfile=fileobj.read()finally:fileobj.close()
分类:
编程语言 时间:
2014-08-26 19:53:57
阅读次数:
305
进入system==》preferences==>appearance==>Fonts==>把所有的fonts重新选择为wenquanyi开头的字体。然后close,问题解决。
分类:
其他好文 时间:
2014-08-26 11:53:07
阅读次数:
156
会计期间误关闭后需要从新打开需要做一下几个步骤
SELECT acct_period_id period, open_flag, period_name name,
period_start_date, schedule_close_date, period_close_date
FROM org_acct_periods
WHERE organization_id = &org_id
...
分类:
其他好文 时间:
2014-08-26 00:33:45
阅读次数:
302
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:
其他好文 时间:
2014-08-25 13:04:24
阅读次数:
139
Cédric Bignon :Let's note Points the points of the polygon (where Points[0] == Points[Points.Count - 1] to close the polygon).The idea behind the next...
分类:
Web程序 时间:
2014-08-25 11:29:04
阅读次数:
1396
最近编写一个http服务器,经常发生无故崩溃的情况程序崩溃的时候非常奇怪,既没有产生core文件,我自己也没有类似exit的语句后来发现原来是这样:TCP是全双工的信道, 可以看作两条单工信道, TCP连接两端的两个端点各负责一条. 当对端调用close时, 虽然本意是关闭整个两条信道,但本端只是收...
分类:
其他好文 时间:
2014-08-23 15:10:20
阅读次数:
209
/*String Matching
Description
It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost"?
There...
分类:
其他好文 时间:
2014-08-23 02:24:09
阅读次数:
171