Python学习第一天--工欲善其事必先利其器

开博语:

只所不如人也,唯惰字而已!今反省自身,自当勤勉!

 

 

1:安装开发环境 (VS,python3.8, 以及vs的python extension)

vs从官网下载--说明vs的风格以及强大的功能是我的最爱,建议使用这个工具进行python的学习以及开发。

python3.8 从官网下载(注意安装路径,vs要求解释器存放路径)

VS 开源工具中关于如何进行python开发的说明文档,https://code.visualstudio.com/docs/python/python-tutorial

2:GitHub有用的学习材料--python学习路线

https://github.com/jackfrued/Python-100-Days

 

3:第一个小程序

"""
Author:liyya
我的第一个python程序

"""


import sys
import turtle
print(help(turtle.right))
turtle.pensize(4)
turtle.pencolor('red')
turtle.forward(100)


turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)

turtle.mainloop()

print("welcome to the python world\n")

 

 

4:如何去查询模块中的函数说明

 

"""
this is used to figure out how to use a "right" function of the module
"""
print(help(turtle.right)) 

 

 

  

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值