p py pyt pyth pytho Python pytho pyth pyt py p
我這個程式我嘗試了數字三角形的方法還有*三角形的方法,但都無法做到,所以在此懇請
收起
python = 'python' s = list(python) for i in range(2 * len(s)-1): if i >= len(s): s.pop() print(''.join(s)) else: print(''.join(s[:i+1]))
报告相同问题?