-1
如何在python的輸入函數中添加提示參數?獲取python輸入參數
def getUserFileNameInput(self, s):
FileName = input("Please enter the file name and path for " % s)
test = t()
test.getUserFileNameInput("my.txt")
我現在的錯誤:
File "C:\Python34\try.py", line 13, in getUserFileNameInput
FileName = input("Please enter the file name and path for " % s)
TypeError: not all arguments converted during string formatting