摘要: # 体验JDK21新特性:字符串模版 ## 介绍 字符串模版是JDK21的新特性,详细内容可参考JEP430 https://openjdk.org/jeps/430 字符串模版类似Python的`fstring` ```python a=1 b=2 s=f'{a} + {b} = {a+b}' ` 阅读全文
posted @ 2023-08-17 17:16 BrevinZhang 阅读(2390) 评论(0) 推荐(0)