python语法截断字符串
As of Python 3.6, f-strings are a great new way to format strings. Not only are they more readable, more concise, and less prone to error than other ways of formatting, but they are also faster! By the end of this course, you’ll know how and why to start using f-strings today.
从Python 3.6开始,f字符串是格式化字符串的一种很棒的新方法。 与其他格式化方式相比,它们不仅更具可读性,更简洁且不易出错,而且速度更快! 在本课程结束时,您将了解如何以及为什么今天开始使用f弦。
翻译自: https://www.pybloggers.com/2019/03/python-3s-f-strings-an-improved-string-formatting-syntax/
python语法截断字符串