Abstract Factory:提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类。 Adapter:将一个类的接口转换成客户希望的另外一个接口。A d a p t e r模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。 Bridge:将抽象部分与它的实现部分分离,使它们都可以独立地变化。 Builder:将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。 Chain of Responsibility:为解除请求的发送者
This manual documents the API used by C and C++ programmers who want to write extension modules or embed Python. It is a companion to Extending and Embedding the Python Interpreter (in Extending and Embedding Python), which describes the general pri
口译员
这是1998年的一个老学校项目。目标是在Turbo Pascal中为WHILE语言编写一个解释器,然后在WHILE本身中编写一个解释器版本。
WI / XWI
WI是用于DOS的WHILE语言解释器(XWI是相同的,但已编译为使用扩展的内存)。 已实现以下功能:
read X
write Y
hd E
tl E
cons E F
=? E F
atom=? E F
while E do C
case E of F => C
在windows系统下写的python脚本,在linux下赋予权限chmod +x xxx.py 以后,执行./xxx.py运行提示:bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
分析:
这是不同系统编码格式引起的:在windows系统中编辑的.sh .py文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。一般是因为windows行结尾和linux