资讯

This post explains how to concatenate a string in Python. As well as how to build strings, search for substrings and much more.
Functions that rely on something outside the function itself (e.g., a network call, or a read from disk) are harder to memoize, though it can still be done.