摘要: 一、字符串前加"f" 1. % 可以使用 % 格式化字符串。 c = (250, 250) # 使用 % 格式化 s1 = "坐标为:%s" % c # TypeError: not all arguments converted during string formatting s1 = "坐标为 阅读全文
posted @ 2021-10-25 20:44 Python探索牛 阅读(1518) 评论(0) 推荐(0)