我在這方面遇到了很多麻煩。我嘗試過多種方式,但它仍然給我一個錯誤信息和崩潰。我想循環播放,直到用戶輸入1或2 System.out.println("Please choose if you want a singly-linked list or a doubly-linked list.");
System.out.println("1. Singly-Linked List");
Sys
def round1():
global Rod, Jane, Freddy
Rod=int(input("please enter Rod's score"))
Jane=int(input("please enter Jane's score"))
Freddy=int(input("please enter Freddy's score"))
我有一個8列的數據框,我想將最後六列轉換爲整數。數據框也包含NaN值,我不想刪除它們。 a b c d e f g h
0 john 1 NaN 2.0 2.0 42.0 3.0 NaN
1 david 2 28.0 52.0 15.0 NaN 2.0 NaN
2 kevin 3 1.0 NaN 1.0 10.0 1.0 5.0
任何想法? 謝謝。