摘自wikipedia:https://en.wikipedia.org/wiki/Magic_number_%28programming%29#Examples
In computer programming, the term magic number has multiple meanings. It could refer to one or more of the following:
- A constant numerical or text value used to identify a file format or protocol; for files, see List of file signatures
- Distinctive unique values that are unlikely to be mistaken for other meanings (e.g., Globally Unique Identifiers)
- Unique values with unexplained meaning or multiple occurrences which could (preferably) be replaced with named constants
版权声明:本文为tq384998430原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。