• 2022-05-31
    获得用户的输入当作对齐模式,用户输入:左、右、中,分别表示:左对齐、右对齐和居中对齐,以*作为填充符号,30字符宽度输出PYTHON字符串。请完善代码。m = input("请输入对齐模式:")s = "PYTHON"if m =="右":m = ">"elif m =="中":m = "^"else:m = "<"print("{____①____}".format(____②____))