From 9a7b45a26dfb1bc8741afb15402f5ff17bead99d Mon Sep 17 00:00:00 2001 From: x p k Date: Mon, 17 Jul 2023 14:10:28 +0800 Subject: [PATCH] NEW: added some test files --- py/log-test.py | 11 +++++++++++ py/string-test.py | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100755 py/log-test.py create mode 100755 py/string-test.py diff --git a/py/log-test.py b/py/log-test.py new file mode 100755 index 0000000..552f17d --- /dev/null +++ b/py/log-test.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 +import logging + +logging.basicConfig(format='%(levelname)s: %(message)s',level=logging.DEBUG) + +logging.debug('Debug message') +logging.info('Info message') +logging.warning('Warning message') +logging.error('Error message') +logging.critical('Critical message') + diff --git a/py/string-test.py b/py/string-test.py new file mode 100755 index 0000000..77d9835 --- /dev/null +++ b/py/string-test.py @@ -0,0 +1,7 @@ +#!/usr/bin/python3 + +msg = "" +msg += "Line 1" +msg += "Line 2" + +print(msg)