How To Solve Mac System Python Matplotlib Library Chinese Gibberish Problem

Google matplotlib library drawing generate Chinese messy code problem, the most popular answer is the following lines of code. import numpy as np import matplotlib.pyplot as plt plt.rcParams[‘font.sans-serif’] = [‘SimHei’] Obviously, this is because there is no SimHei font library on the MAC, so most tutorials tell you how to download SimHei fonts and how …

How To Solve Mac System Python Matplotlib Library Chinese Gibberish Problem Read More »

Python Web App ORM Example

In previous article How To Set Up Python Web Application Development Environment, we have tell you how to create a simple hello world web application in python, this article we will focus on how to write python code to manipulate MySQL database with ORM (Object Relational Mapping).

How To Set Up Python Web Application Development Environment

1. Make sure that the Python version of the system installation is 3.6.x. $ python3 –version Python 3.6.1 2. Run pip3 command to install the third-party libraries you need to develop your web application. 2.1 Install the asynchronous framework aiohttp $ pip3 install aiohttp 2.2 Install front end template engine jinja2. $ pip3 install jinja 2.3 …

How To Set Up Python Web Application Development Environment Read More »

How To Get Current Path, Current Module File Name, Command Line Parameter And Executable File Path In Python.

1. How To Get The Current Path. The current path can be represented by ‘.’, and then converted to an absolute path by os.path.abspath(). import os print(os.path.abspath(‘.’)) Running result. $ python3 get_curr_path.py /Users/jerry 2. How To Get The File Name Of Current Module. It can be obtained by the special variable __file__. print(__file__) The output. …

How To Get Current Path, Current Module File Name, Command Line Parameter And Executable File Path In Python. Read More »

Python Time Module Examples

In Python, there are three modules to process time, they are time, datetime, and calendar. And time is represented in three ways: a timestamp, a formatted time string, and a structured time. This article will focus on the time module, we will introduce other two modules in later articles.

Python Speech Recognition Introduction And Practice

Amazon’s huge success with Alexa has proven: in the near future, implementing a degree of voice support will become a basic requirement of everyday technology. Python programs that integrate speech recognition provide a level of interactivity and accessibility that no other technology can match. Most importantly, implementing speech recognition in Python programs is very simple.

Spring JDBC Development

Spring is a one-stop framework with solutions for each layer of enterprise java application development, such as at the persistence layer, spring provides JDBC templates and ORM modules to integrate other persistence frameworks.

Spring Security Overview

Spring Security is a certification authorization framework that supports authentication modes such as HTTP BASIC authentication (based on IETF rfc-based standard),HTTP Digest authentication (based on IETF rfc-based standard), form-based authentication (for simple user interface),OpenID authentication, and so on. Spring Security enables the current system to quickly integrate these authentication mechanisms or implement its own set …

Spring Security Overview Read More »