摘要: import logging logging.basicConfig(filename="std.log", format='%(asctime)s %(message)s', filemode='w') logger=logging.getLogger() logger.setLevel(logg 阅读全文
posted @ 2023-04-14 15:36 xiaoxuxli 阅读(19) 评论(0) 推荐(0) 编辑
摘要: fstring >>> name = "Eric" >>> age = 74 >>> f"Hello, {name}. You are {age}." 'Hello, Eric. You are 74.' >>> F"Hello, {name}. You are {age}." 'Hello, Er 阅读全文
posted @ 2023-04-14 15:30 xiaoxuxli 阅读(27) 评论(0) 推荐(0) 编辑