I want to insert data from a CSV file into a PostgreSQL table. The table
結構如下。但是我無法給出INTEGER類型值的輸入。 它表示錯誤喜歡 - DataError:無效輸入語法整數: 「vendor_phone」 LINE 1:... vendor_phone,vendor_address)VALUES( 'VENDO
所以我一直在試圖做一個計算器來解決x,但我需要檢查一個字符串是否是一個整數。我試圖把float("string")來檢查,但如果它不是一個浮點數,它會顯示一個錯誤: [ValueError: invalid literal for float():] 下面是完整的代碼: print "Please enter your equation. Put spaces after each term, l