乐高机器人投篮编程_乐高 EV3 高级编程 - 第二课:Hello World

这几天有点忙,都没时间翻译,今天刚好有时间,突然忽发奇想,万一我发现原文错了,到底我的翻译要跟着错呢?还是翻译改正,原文继续错?还是索性把原文一起改了?

EV3: Lesson 2 - First EV3 Python Program: "Hello World"

EV3:第二课 - 第一个Python程序:“Hello World”

2.1 Open the IDE and Create a New Project

2.1 打开 IDE 并新建一个项目

Open Visual Studio 2017 and create a new project:

打开 Visual Studio 2017 并且新增一个项目:

Figure 2.1

To start it as simple as possible, we choose the "Python Application" as the project type, the Name of the Project is: "EV3PythonLessons", choose an appropriate folder to create this project, we use "D:\vs2017" in this example.

You must choose "Create directory for solution" as this is a new project.

You may want to choose "Create new Git repository" if there are more than 1 person in your programming team, or you want to better protect your programs by version control.

Now, click "OK" to create this project.

使用最简单的方法开始,我们选择的项目类型是“Python Application”,我们用“EV3PythonLessons”作为项目名称,你可以选择任意的文件夹去创建这个项目,在这里,我们使用了“D:\vs2017”这个文件夹。

由于这是一个全新的项目,因此你必须要选择“Create directory for solution”。

如果你的编程团队有超过一个人一起编写这个程序,你可能会想选择“Create new Git repository”,这样,你们就可以使用版本控制的功能一起编写/修改程序了。

现在,按“OK”去创建这个项目。

2.2 First Program

2.2 第一个程序

An empty python program will be created for you, namely "EV3PythonLessons.py", we DO NOT need this! So, close this program by clicking the "X".

一个新的 python 程序 “EV3PythonLessons.py”会自动被创建,我们不需要这个程序,所以,按“X”把这个程序关掉。

Figure 2.2

Now Right click the "EV3PythonLessons", select "Add", then select "New Item":

在屏幕右边项目名称“EV3PythonLessons”的位置,按鼠标右键并选择“Add”,然后选择“New Item”࿱

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值