當前位置:成語大全網 - 新華字典 - PTA打印沙漏習題,我的代碼(python3)為什麽會提示格式錯誤?

PTA打印沙漏習題,我的代碼(python3)為什麽會提示格式錯誤?

1. 打印出的沙漏形狀,右側千萬不能出現多於的空格,在行尾請回車

2. 在調用python3 的input函數時,不能在屏幕上打印input的說明,否則也會被PTA判斷成不通過。換句話說,input("") 可以通過測試,但是input("Please enter an integer")就會帶來誤判!