python工程师
To be called literate in the 2020s there is a good chance you must know how to code. It may seem an exaggeration, but I certainly believe it would be true for engineering roles. I still remember vividly when in 2014 President Obama participated in the ‘Hour of Code’ to encourage students to pick up coding. That students are entering the job market now and in the coming years and I cannot even imagine how much of impact they would have in the way we live and work. One thing I know is learning how to code is fun, liberating and can save you lots of trouble in the long run while makes you look smarter than you are (certainly true in my case).
要在2020年代被称为识字,您很有可能必须知道如何编码。 这似乎有些夸张,但我当然相信对于工程角色来说是正确的。 我仍然清楚地记得,当奥巴马总统在2014年参加“ 编码小时 ”以鼓励学生学习编码时。 学生现在和未来几年都将进入就业市场,我什至无法想象他们会对我们的生活和工作方式产生多大影响。 我知道的一件事是,学习编码的方法很有趣,可以解放您的语言,从长远来看可以为您省去很多麻烦,同时使您看起来比以前聪明(在我看来,这确实是事实)。
Now if you want to start learning Python, you do not have a problem of finding resources, you will have a unique problem of picking the right one. Sometimes it seems to me there are more python tutorials online than the population of earth! (a bit exaggeration but you get my point). My experience in learning new skills over the last few years has thought me one thing, the most time-consuming yet crucial part is mapping the learning path. If I get that part right, things fall in place nicely. I spent a lot of time online and offline discussing with experienced users to map the path for my learning and over the last few years, I have helped many friends and colleagues with where to start Python and how to approach it. In my previous workplace, I advocated for a formal python training to leadership, once I got their approval I researched, picked and tailored the course to suits our Petro-technical engineers and the course was successfully delivered on February 2019.
现在,如果您想开始学习Python,就不会遇到寻找资源的问题,那么就会遇到一个唯一的问题:选择合适的资源。 在我看来,有时候在线上的python教程比地球人口还多! (有点夸张,但你明白我的意思)。 过去几年中,我在学习新技能方面的经验使我想到了一件事,最耗时但至关重要的部分是绘制学习路径。 如果我做对的那部分,一切就很好了。 我花了很多时间在网上和线下与经验丰富的用户进行讨论,从而为我的学习铺平道路。在过去的几年中,我已经帮助许多朋友和同事在哪里启动Python以及如何使用它。 在我以前的工作场所中,我主张对领导层进行正式的python培训,一旦获得他们的认可,我就会研究,挑选和定制适合于我们的石油技术工程师的课程,并且该课程于2019年2月成功交付。
Photo by Dlanor S on Unsplash Dlanor S在 Unsplash上的 照片Today I am going to share with you some of the frequent questions I receive and my answers to them. My hope is these questions and answers would ease your way on your journey to learn Python. I share the post on my LinkedIn and my Medium page, and I hope to update it regularly. Please use these as a guideline alongside your research. If you find alternative resources that were helpful please feel free to share them with me or comment them down below for everyone’s benefit. Also please do not hesitate to ask away your questions in the comment or direct message, I would be happy if I can help.
今天,我将与您分享一些我收到的常见问题及其答案。 我希望这些问题和答案可以简化您学习Python的方式。 我在LinkedIn和“中型”页面上分享了该帖子,并希望定期进行更新。 请在研究时将其用作指导。 如果您发现其他有用的资源,请随时与我分享或在下方注释掉,以使每个人受益。 另外,请不要犹豫,在评论或直接消息中问您的问题,如果能提供帮助,我将非常高兴。
Question 1: Python or R, which one should I learn?
问题1:Python或R,我应该学习哪个?
If you are an engineer or want to code for an engineering solution, my answer is Python. Python is the second most popular programming language now while R is 14th and they were in similar rank not long ago. You can read about some of their differences here. As a beginner for at least the first year of learning python, there is a very good chance that any problem you face has an answer ready for you on the internet and that makes the learning process a smoother journey.
如果您是工程师或想为工程解决方案编写代码,那么我的答案是Python。 Python是目前第二受欢迎的编程语言,而R是第14,并且不久前它们的排名也差不多。 您可以在此处了解其一些区别 。 作为学习python至少第一年的初学者,很有可能您遇到的任何问题都会在Internet上为您准备好答案,这将使学习过程更加顺畅。
Question 2: Python2 or Python3?
问题2:Python2或Python3?
Python 2 is dead. So, if you are about to start learning Python, don’t even consider this question as part of your research.
Python 2已死。 因此,如果您将要开始学习Python,甚至不要在研究中考虑这个问题。
Question 3: Where to start learning Python?
问题3:从哪里开始学习Python?
I picked up a few different courses, to begin with. As an engineer, I work with excel sheets, PDF files, office documents every day. Why should I pick up a course that teaches python very well, but the projects are about tic-tac-toe and some other random games? This is why “Automate Boring Stuff with Python” is my top recommendation. Al’s book and delivery are great. More importantly, the course is very practical which allows you to start coding on your small projects very quickly. Those small wins hopefully are going to motivate you and make it easy for you to commit to learning.
首先,我学了一些不同的课程。 作为工程师,我每天处理excel表格,PDF文件和Office文档。 为什么我应该选择一门很好地教授python的课程,但是这些项目是关于井字游戏和其他一些随机游戏的? 这就是为什么我的最高建议“ 使用Python自动化无聊的东西 ”。 Al的书和送货都很棒。 更重要的是,该课程非常实用,可让您快速开始对小型项目进行编码。 这些小小的胜利有望激发您的动力,并使您更轻松地致力于学习。
Question 4: I finished “Automate Boring Stuff with Python”, now what?
问题4:我完成了“使用Python自动完成无聊的事情”,现在呢?
If writing scripts is all you want to know from Python, then “Automate Boring Stuff with Python” should be enough.
如果您只想通过Python编写脚本,那么“使用Python自动完成钻Kong”就足够了。
If you want to learn python more in-depth or you are thinking on developing applications with more complexity than automating scripts and such, then you may want to have a look at a computer science course with a focus on Python. I highly recommend the 2-part series “Introduction to Computer Science and Programming Using Python” by MITx which is available through the MIT website and Edx. What you get out of the course is how to frame your mind to code like a computer scientist. It is invaluable in making you a more efficient programmer and more comfortable with Python and its libraries’ documentation.
如果您想更深入地学习python或正在考虑开发比自动化脚本等复杂得多的应用程序,那么您可能想看看一本以Python为重点的计算机科学课程。 我强烈推荐MITx分为2部分的系列文章“使用Python进行计算机科学和编程简介”,该系列可通过MIT网站和Edx获得 。 您从课程中学到的是如何像计算机科学家一样将自己的思想构架为代码。 它对于使您成为更高效的程序员,更熟悉Python及其库文档非常有用。
Question 5: Is there any other resources to learn from.
问题5:是否还有其他资源可以学习。
Yes, plenty, I list them here and try to explain in a few short sentences why they have been shortlisted and worth your time:
是的,很多,我在这里列出它们,并尝试用几句话来解释为什么将它们列入候选名单并值得您花时间:
Think Python:
想想Python :
Great book for an introduction to Python, available for free. What I liked the most was how each chapter has some exercises to help you to judge your understanding.
很棒的书,介绍Python, 免费提供 。 我最喜欢的是每章都有一些练习来帮助您判断理解。
A whirlwind Tour of Python:
Python旋风之旅 :
It is a fast-paced introduction to Python and it is tailored to those who are new to Python but have programming background in other languages. If you are profieceint with VBA and you want to pick up Python, maybe this would be a good starting point for you. It is available for free from various sources, such as here and here.
它是Python的快速入门,它是为刚接触Python但具有其他语言的编程背景的用户量身定制的。 如果您是VBA的专业人士,并且想要使用Python,那么这可能对您来说是一个很好的起点。 它可以从各种来源(例如此处和此处)免费获得。
Python for Data Analysis:
用于数据分析的Python:
If you are ready to learn pandas, then why not learning it from the person who created it. Wes’s book is the go-to for learning pandas, combined that with his videos on YouTube and then learning pandas would be fun. You can purchase the book here.
如果您准备学习熊猫,那么为什么不向创建熊猫的人学习。 Wes的书是学习大熊猫的必经之路,再结合他在YouTube上的视频,然后学习大熊猫将会很有趣。 您可以在这里购买这本书 。
Medium:
媒介 :
I found Medium website and “towards data science” publishing page particularly useful for finding like-minded people, latest trends and general coding/python tips and tricks that would be handy.
我发现Medium网站和“ 走向数据科学 ”的发布页面对于寻找志趣相投的人,最新趋势以及方便的通用编码/ python技巧和窍门特别有用。
Reddit:
Reddit:
Reddit needs no introduction. I found learnpython and datascience subreddits very useful forums to follow.
Reddit不需要介绍。 我发现学习python和数据科学 subreddits非常有用的论坛可以关注。
Stackoverflow:
Stackoverflow :
Last but not least is stackoverflow. There is a very good chance that any python questions that come to your mind have already been answered here. So, you would learn to rely on this very early in your learning journey.
最后但并非最不重要的是stackoverflow。 很可能在这里回答了您想到的所有python问题。 因此,您将在学习过程的早期就学会依靠这一点。
Question 6: How can I practice.
问题6:我该如何练习。
Try to find easy projects around you. I know this is easier said than done. Finding a good personal project would be one the most challenging part to you in this journey as I had a hard time finding a project that worth doing, yet can deduce to simple challenges so it fits in my skill set and I can approach it.
尝试在您周围找到简单的项目。 我知道这说起来容易做起来难。 在我的旅程中,找到一个值得做的项目很困难,但是可以推论出简单的挑战,使它适合我的技能,因此我可以轻松地找到一个好的个人项目,这对您来说是最具挑战性的部分。
If you cannot think of any projects early on, don’t panic, it is as natural as losing breath after running a marathon( in my case around the block). The solution is codewars. I found codewars around 2 years ago and that helped me solidify many of my learnings. It gives you small projects to practice your python skills, try to start from basics and gradually increase the level of difficulties.
如果您不能尽早想到任何项目,请不要着急,这就像在马拉松比赛后屏住呼吸一样(在我的情况下为街区)。 解决方案是代码战 。 大约2年前,我发现了代码战,这帮助我巩固了很多学识。 它为您提供了一些小项目来练习python技能,尝试从基础开始,逐步增加难度。
I have developed a few small and big projects with Python over the last few years, I share two of my favourites below to hopefully gives you some motivation and idea.
在过去的几年中,我使用Python开发了一些小型和大型项目,我在下面分享了我的两个收藏夹,希望能给您一些动力和想法。
The first one is a personal project I did at home using Raspberry Pi and my Solar system. My python code requests the energy output of my solar system every minute, collects it in a database and plots them for me on my command. I can check how many sunny days I had in a month and monitor the quality of my panels over time.
第一个是我在家使用Raspberry Pi和Solar系统完成的个人项目。 我的python代码每分钟请求一次太阳系的能量输出,将其收集在数据库中,并在命令中为我绘制它们。 我可以查看一个月中有多少晴天,并可以随时监控面板的质量。
The second one is work-related and it is a project I did at my current role. My application successfully reduced the time required to generate gas and water type curves from over a week for our big fields to minutes, by automating a lot of calculations which were previously run in Excel.
第二个是与工作有关的,这是我目前担任的一个项目。 我的应用程序通过自动执行许多以前在Excel中运行的计算,成功地将大型领域的天然气和水类型曲线生成所需的时间从一周减少到了几分钟。
翻译自: https://medium.com/@aedalat/my-journey-to-learn-python-as-a-petroleum-engineer-dfb5a2bbbe88
python工程师
相关资源:微信小程序源码-合集6.rar