Defined function keeps returning None, despite having a print() specified within the return line

后端 未结 0 1033
半阙折子戏
半阙折子戏 2021-01-25 04:55
import textwrap
def wrap(string, max_width):
    i = textwrap.wrap(string, width=max_width)
    print(i)
    z = print(*i, sep=\'\\n\')
    return z

string, max_width =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题