- IguanaTex v1.61
- Windows 11
- PowerPoint version 2405
- LaTeX (MiKTeX or TeX Live)
- GhostScript
LOG_FILENAME = "mylog.log" | |
LOG_ENCODING = "utf-8" | |
def main(): | |
print("Hello world!") | |
if __name__ == "__main__": | |
import datetime |
"""http://thesmithfam.org/blog/2012/10/25/temporarily-suppress-console-output-in-python/ | |
https://stackoverflow.com/questions/36956083/how-can-the-terminal-output-of-executables-run-by-python-functions-be-silenced-i | |
""" | |
import os | |
import sys | |
from contextlib import contextmanager | |
@contextmanager | |
def suppress_stdout(): |
{ | |
// Snippets for Python | |
"Private Member Getter": { | |
"prefix": [ | |
"pmg", | |
"ㅔㅡㅎ" | |
], | |
"description": "Create private class member with getter", | |
"body": [ | |
"__${1:Name}: ${2:Type}", |
"""http://thesmithfam.org/blog/2012/10/25/temporarily-suppress-console-output-in-python/ | |
https://stackoverflow.com/questions/36956083/how-can-the-terminal-output-of-executables-run-by-python-functions-be-silenced-i | |
""" | |
import sys | |
import os | |
import contextlib | |
print(f"package\t{__name__}\tloaded") |
def if_bool_value(any_input): | |
_str = f"For if statement, {any_input} of {type(any_input)} is" | |
if any_input: | |
print(_str, True) | |
else: | |
print(_str, False) | |
if_bool_value(1) | |
if_bool_value(2) |