python学多久比较合适_怎么自学python,大概要多久?

建议最有效的学习方式是“做题”,(特别是有一定数据结构/对象化基础的话),比如在 Euler Project 或 HackerRank 上。

一般都有上百个题,这些题开始的很简单,即是不知道怎样在新语言里把两个字符串加起来,看着帮助文档,搜 StackOverflow 也可以立即开始做题。写出来直接可以运行,看到是否通过。

做了几百个题以后,对这个语言就相当熟练了。

以前试过两次,一次是在几周内做了200题左右,另外一次是几个月数百题做到95%百分位。

当然有一个实用的目的还是很重要的,这样也激发动力和兴趣。

翻出2015年时的日志,找到了当时自己是为什么会想到要学Python:

逐步翻译:2. 自动化是为了解放生产力

中小学时学了一些编程,也学了一些马哲。马哲所说的时,那些劳苦的,重复的作业,是对人性精神的异化,是把人变成了机器。在把工人从不假思索的重复苦力劳做中解放出来以后,所有那些之前压抑的人才潜力和原创动力才会繁荣发展,产生创新发明增进生产力,使社会经济不断进步。

我是真正拥抱这一理念。在学习怎样使用机器上作出努力(以便不用像机器一样去努力)感觉是体面而高尚的工作。所以工程学的意义也就在于此。

When there’s a choice between doing something manually (which tends to involve less upfront setup) and setting up an automated process, I prefer the programmatic approach. For example, I did my structural analysis projects (designing the structural members for a building) entirely in spreadsheets instead of on paper (the normal way). It took some additional hours to build and reference the long sequences of interdependent formulae, but in the end, you could change a number on the first page in the specifications (say, now the floor needs to be 10% larger), and all the calculations of the next 80 pages would update. What would take a human hours to recalculate now runs in milliseconds — that is power.流程图:自动计算结构分析 Hardy-Cross

That’s how I picked up Python. I wanted to port some dictionaries, and it would be extremely arduous to manually click on hundreds or thousands of pages to download them, so I learned to write scripts to collect, navigate, traverse, aggregate, and re-structure the data.3. 用科技和外在世界实现交互

When I hear a conversation about how different database systems handle geo-indexing, I would feel a subtle jolt of excitement because there’s a sense of progress: some functionality and interface being actively developed — and there are many areas of technology like that — new advances are happening daily. We are not only dealing with data, but also representations of the real world; we are not just solving Sudoku puzzles, but constantly expanding our reach in sensing and altering the physical reality.

The engineering perspective views life as a set of problems to be worked on and solved. It carries an inherent optimism (if not mild hubris) with an epic undercurrent of “humanity taking on the world”. I embrace this optimism.

做题只是最开始的一步,是培养肌肉记忆。从更长远的来说,还是要找到自己感兴趣的项目或是任务,这样不仅 IDE 可以帮助你把编程不断巩固的更熟练,也会从中得到价值和意义。学有所用,不亦乐乎?!

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值