Some objects contain references to other objects; these are called containers. Examples of containers are tuples, lists and dictionaries. The references are part of a container’s value. In most cases, when we talk about the value of a container, we imply the values, not the identities of the contained objects; however, when we talk about the mutability of a container, only the identities of the immediately contained objects are implied. So, if an immutable container (like a tuple) contains a reference to a mutable object, its value changes if that mutable object is changed.
python的数据转换很灵活，所以用日志记录下他们的用法。 Continue reading “python整数、字符串、字节串相互转换”
Python编程特别是网页解析时一定遇到过UnicodeEncodeError、UnicodeDecodeError 错误，每当遇到错误我就拿 encode、decode 函数翻来覆去的转换，有时试着试着问题就解决了，有时候怎么试都解决不了，为了避免下次遇到类似的问题重蹈覆辙，所以需要分析清楚 Python 字符编码错误的根因。 Continue reading “Python 编码错误根因分析”
需要增加新的硬盘扩容。将硬盘分区、格式化、自动挂载配置的整个过程记下来，备忘。 Continue reading “Linux硬盘相关的操作”
The value of
LIBRARY_PATHis a colon-separated list of directories, much like
PATH. When configured as a native compiler, GCC tries the directories thus specified when searching for special linker files, if it cannot find them using
GCC_EXEC_PREFIX. Linking using GCC also uses these directories when searching for ordinary libraries for the -l option (but directories specified with -L come first).
A list of directories in which to search for ELF libraries at execution-time. The items in the list are separated by either colons or semicolons. Similar to the
PATHenvironment variable. This variable is ignored in secure-execution mode.
Within the pathnames specified in
LD_LIBRARY_PATH, the dynamic linker expands the tokens
$PLATFORM(or the versions using curly braces around the names) as described above in
Rpath token expansion. Thus, for example, the following would cause a library to be searched for in either the
lib64subdirectory below the directory containing the program to be executed:
$ LD_LIBRARY_PATH='$ORIGIN/$LIB' prog
(Note the use of single quotes, which prevent expansion of
$LIBas shell variables!)