Python Tutorial

How To Use Python To Execute Sql Script Read From External SQL File In SQLite Database

The python SQLite database module’s cursor object contains a executescript() method, this method is not a standard API method, which means that it may not be available in other database API modules. But this method is practical, and it can execute a SQL script in a string or read from an external SQL file. This …

How To Use Python To Execute Sql Script Read From External SQL File In SQLite Database Read More »

How To Use Regular Expressions In Python

The regular expression is a special character sequence, which can help you easily check whether a string matches a pattern. Python has added the re module since version 1.5, which provides Perl-style regular expression patterns. The python re module makes the Python language have all regular expression functions.