当我删除列表框中的项目时,我收到问题中的错误,如下面的屏幕截图所示:

我不知道内部异常在哪里,但我尝试尝试,捕获但我在问题中得到了相同的错误.
这是所有代码:
namespace WpfApplication7
{
/// <summary>
/// Interaction logic for Edit_Rooms.xaml
/// </summary>
public partial class Edit_Rooms : Window
{
public Edit_Rooms()
{
InitializeComponent();
}
//initialises entities
WpfApplication7.AllensCroftEntities1 allensCroftEntities1 = new WpfApplication7.AllensCroftEntities1();
private Room ObjectIndex;
private void Window_Loaded(object sender, RoutedEventArgs e)
{
// Load data into Rooms.
System.Windows.Data.CollectionViewSource roomsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("roomsViewSource")));
//runs a query to go the roomsQuery to get the rooms table from the entities
System.Data.Objects.ObjectQuery<WpfApplication7.Room> roomsQuery = this.GetRoomsQuery(allensCroftEntities1);
//used when adding new rooms
roomsViewSource.Source = roomsQuery.Execute(System.Data.Objects.MergeOption.AppendOnly); …Run Code Online (Sandbox Code Playgroud) 我不应该得到负数,请看下面的截图:
见下图:

这是代码:
for (double i=8.0; i<=12;i=i+0.5)
{
double aa= (i - Convert.ToInt32(i)) ;
Console.WriteLine(" "+i+" "+aa);
}
Run Code Online (Sandbox Code Playgroud) 我将以下数据存储为col?
Location
47.608941, -122.340145
55,66
33,22
55,22
Run Code Online (Sandbox Code Playgroud)
如何忽略第一行并在Python中打印出其余部分?
for index in range(len(col)):
print col[index]
Run Code Online (Sandbox Code Playgroud)