Python provides modules for complicate application. This modules can locate in any directory or even sub-directories. Project structure can create like this:
Continue reading __init__.py in Python module
nginx: A http server acts like apache. It is a portal to handle every request from URL and response to client;
uwsig: A background framework runs working processes behind nginx. nginx transfer http request to uwsig. uwsgi dispatch these request to worker process. After processing, it return result to nginx. Continue reading nginx+uwsgi framework
In normal, if current language in game is English, since the range is 0-127, ASCII is good enough to cover all characters and symbols. The advantage of using ASCII is saving space for its one byte usage.
Unicode is a standard table set that mapping all over the world language character. To adapting other complicate character, it uses two bytes to cover massive possibility of character encoding. For example, for letter “A”, the Unicode is 0x0041, for Chinese “严”, the Unicode is 0x4E25. Continue reading UTF8 Encoding