library fundll; { Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings
引子
平常的文本处理工作中,我经常会遇到这么一种情况:用python判断一个string是否包含一个list里的元素。
这时候使用python的内置函数any()会非常的简洁:
fruits = ['apple', 'orange', 'peach']
str = I want some apples
if any(element in str for element in fruits):
print string contains some fruits.
any()
其实any函数非