摘要:
import logging logging.basicConfig(filename="std.log", format='%(asctime)s %(message)s', filemode='w') logger=logging.getLogger() logger.setLevel(logg 阅读全文
摘要:
fstring >>> name = "Eric" >>> age = 74 >>> f"Hello, {name}. You are {age}." 'Hello, Eric. You are 74.' >>> F"Hello, {name}. You are {age}." 'Hello, Er 阅读全文