我想知道如何使用f-strings 以Pythonic 的方式格式化这个案例: names = ['Adam', 'Bob', 'Cyril'] text = f"Winners are:\n{'\n'.join(names)}" print(text)
確定! 回上一頁