在Windows上安装python时,必须通过转到private void RedrawAquarium(object sender, EventArgs args)
{
aquarium.Iterate();
DrawingGroup aquariumImages = new DrawingGroup();
ImageDrawing background = new ImageDrawing();
background.Rect = new Rect(aquarium.Size);
background.ImageSource = new BitmapImage(aquarium.BackgroundImageUri);
aquariumImages.Children.Add(background);
foreach (var fish in aquarium.Fishes)
{
ImageDrawing fishImage = new ImageDrawing();
fishImage.Rect = new Rect(fish.Value.Position, fish.Value.Size);
fishImage.ImageSource = new BitmapImage(fish.Value.TextureUri);
aquariumImages.Children.Add(fishImage);
}
DrawingImage drawingImageSource = new DrawingImage(aquariumImages);
drawingImageSource.Freeze();
BackgroundImage.Source = drawingImageSource;
}
来设置路径,然后单击Environment Variables
,输入名称,然后在New
处输入路径,最后编辑路径并向其中添加value
。执行此操作时,您可以键入%pythonexe%;
,然后将获得python shell。有没有一种更简单的方法可以执行此操作而无需转到系统变量,而是执行所有这些工作?