Python-在Windows上设置python路径的更快方法?

时间:2019-03-26 15:25:51

标签: python windows pythonpath system-variable

在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。有没有一种更简单的方法可以执行此操作而无需转到系统变量,而是执行所有这些工作?

1 个答案:

答案 0 :(得分:0)

根据this post所要做的就是在python中键入:

  
Command Prompt