参考代码:
high, wide, s, flag = map(str, input().split()) for i in range(int(high)): for j in range(int(wide)): if flag == '0': if i == 0 or i == int(high)-1: print(s, end='') else: if j == 0 or j == int(wide)-1: print(s, end='') else: print(' ',end='') else: print(s,end='') print()
0.0分
0 人评分