【ENG SUB】前端自学Python一星期,能干点啥?I learned Python in a week
Summary
TLDR本视频脚本讲述了我于2022年1月11日开始学习Python的经历。我已经了解Node.js,希望能学会另一种脚本语言,以处理更多类型的自由职业项目和工作需求。我介绍了Python的优势,如易于上手、轻量,以及它在网络爬虫、数据分析等方面的应用。最后,我表示Python是初学者的良好选择,尤其是作为第二门编程语言,它可以帮助我们在工作和生活中提高效率。我很高兴完成了新年决心中的一项,感谢观看。
Takeaways
- 🐍 开始学习Python,尽管之前多次放弃,但决定再次尝试以扩展自由职业项目类型并提高工作效率。
- 👨💻 作为Node.js开发者,发现Python与JavaScript在数据结构、函数、循环等基础方面有相似之处,但语法和数据结构上存在差异。
- 📊 在非软件公司的操作团队和HR中,Python被用于数据分析和生成报告,以及自动化发送邮件。
- 🏆 通过前公司提供的免费Python课程和学习小组,尝试过学习Python,但由于时间限制未能坚持。
- 🛠️ 认为编程语言之间存在相似性,学习新语言时应关注与已知语言的不同之处。
- 🔍 发现Python具有清晰简单的特点,易于设置环境,并通过pip安装模块以支持各种应用。
- 🕸️ 尝试使用Python编写网络爬虫以提高获取Bilibili视频分析数据的效率,但对如何实现功能存在疑问。
- 📝 通过回顾教程和笔记,以及查看GitHub上的项目示例,开始编写爬虫演示。
- 🔗 为避免法律问题,选择使用Bilibili的开放API进行练习。
- 📊 考虑使用Python图表库来可视化数据,并比较Python和Node.js在开发上的不同,发现Python虽然较慢,但对初学者友好,且文件大小更轻。
- 💡 提出使用Python为Bilibili创作者开发视频分析平台的想法,并计划进一步探索Python图表库。
Q & A
为什么作者决定学习Python?
-作者想要处理更多类型的自由职业项目,并能够阅读工作中需要的Python代码,同时利用Python提高个人生产力。
作者之前尝试学习Python的结果如何?
-作者在过去几年中尝试学习Python,但由于没有时间,总是刚开始就放弃了。
为什么Python在作者的生活和工作环境中很受欢迎?
-在作者生活和工作的湾区,大型科技公司和非软件公司的运营团队都在某种程度上使用Python进行后端开发、数据分析和报告制作,甚至HR也使用Python发送邮件。
作者如何克服过去学习Python时的挑战?
-作者利用空余时间,采取与以往不同的学习方法,如通过视频教程和查阅GitHub上的项目示例,开始实践编写代码。
作者在学习Python的过程中发现了哪些Python的优点?
-Python是一种干净、简单的语言,易于设置环境,拥有丰富的模块可以通过pip安装,便于快速开发应用程序。
作者如何利用Python提高工作效率?
-作者计划通过编写爬虫脚本来快速获取Bilibili视频分析数据,以减少手动收集数据的时间。
作者在实现视频分析数据爬虫的过程中遇到了哪些挑战?
-作者需要弄清楚如何在VS Code中运行Python脚本,安装所需模块,并处理法律上是否允许从特定地址请求数据的问题。
作者是如何解决编写爬虫程序时遇到的问题的?
-作者回顾学习笔记,参考其他人的项目示例,并决定使用Bilibili的开放API来避免法律问题。
Python与JavaScript在数据处理和可视化方面有哪些不同?
-作者认为,相比于JavaScript的图表库,使用Python进行数据分析和图表生成更为简便。
作者如何看待Python作为初学者的编程语言?
-尽管Python在执行速度上可能较慢,但由于其易学和轻量级的特性,作者认为Python是初学者的一个很好的选择。
Outlines
🚀 开始Python学习之旅
2022年1月11日,作者决定开始学习Python,尽管之前多次放弃,但已有Node.js基础。作者希望通过学习Python来扩展自己的自由职业项目类型,并能够阅读工作中的Python代码。Python的普及和在硅谷的重要性促使作者再次尝试学习。尽管之前因为工作忙碌而没有时间学习,但现在作者有了更多的空闲时间并保持了学习的热情。通过对比Python和JavaScript的基础知识和语法差异,作者快速掌握了Python的基础,并在短时间内实现了实用的应用程序开发,如网络爬虫。作者还提到了使用Python进行数据分析和制作图表的便利性,并分享了使用Python开发视频分析工具的经验,以及如何通过学习和实践来克服编程挑战。
📊 Python入门心得与应用
作者总结了学习Python的经验,认为Python是适合初学者的良好选择,尽管执行速度比Node.js慢,但由于其易学和轻量级特性,使得初学者能够快速上手并保持兴趣。Python不仅适用于网络爬虫和数据可视化,还可以用于编写测试、办公自动化、数据科学、后端开发、机器学习等多个领域。作者强调,尽管学习了Python语言,但要进入这些领域还需时间掌握相关框架和积累项目经验。此外,作者通过自己的经历提示,了解就业市场中Python相关职位的需求是重要的,同时也分享了Python作为第二编程语言在技术工作中的实际应用价值。最后,作者提到在面试过程中,拥有数据分析等技能将是简历的加分项。
Mindmap
Keywords
💡学习Python
💡网络爬虫
💡编程语言
💡数据分析
💡代码量
💡运行速度
💡后端开发
💡机器学习
💡编程入门
💡就业前景
Highlights
第一重要摘要
第二关键摘要
第三要点
Transcripts
Today is Jan 11th 2022
I decided to start learning Python
though I gave up on it many times before
I already knew Node.js
but I want to learn another script language
so I will be able to handle more types of freelance projects
and I will also be able to read python code for work if needed
in my free time
maybe I can use it to write scripts to help my productivity
Python is a very popular programming language nowadays
when I live and work in the Bay area
I feel like everybody knows Python
big tech companies like google
use python for their backend in some ways
some companies use python for all of their backend
in the company I use to work at (not a software company)
coworkers in the operation team
use python for data analysis
and make reports with beautiful charts for management
even HR's use python to send emails
and they learned it by themselves
so as someone who loves learning new things
I have to learn it too
in fact I have tried learning python
in the past couple years
my previous company even provided
free
python courses and learning groups to employees
but I didn't have time to learn it.
it's like I just get started and then I give up immediately
but this is not an excuse
as someone who worked full time at that time
to make myself learn something completely new
is quite challenging
people say you can always make the time for it if you truly want to do something
but the time is spent for work
now I finally had some time
I will learn it when I am still interested and motivated
I think programming languages are similar
if you already know one language
when you learn a new language
just focus on finding what is different from the language you already know
the basic stuff like data structures
functions
loops and things like that are similar in different programming languages
python and javascript is not that different
I'm not used to that there is no {} in python
instead you would use :
and indent to segment codes
the difference is in the syntax
and data structure
in day 3
I went though all the basics of python
this time I'm glad I didn't give up
up until now I spent less than 14 hours
at this point
i feel like python is
a very clean and simple
it's very easy to set up
the environment
just need to download python package
and that's all
python comes with many modules
just use pip install to grab it
and then you can import the module directly and use it in your code
and make many fun applications
like for web crawler
you will need the request module
for data analysis you will need to install a chart library
then just import it
pass the data and you will get the graph
I feel like
it's a bit easy to use compared to javascript charts
now I have mixed feelings as a js developer
now it seems like I've learned python
but there is just one question left
that maybe many of you are also wondering
what can you do with python?
for me
when I review my videos on Bilibili
to see if people like my content
since Bilibili
didn't allow us to export
my analytics
so I had to check each video individually
and look at the metrics I think it's important to me
and then put them
on my excel template
then I can try to analyze it
but this is quite time consuming
I always had to spend a whole morning to collect the data
in order to be more productive
I need to figure out how to
get my video analytics faster
instead of me having to click on each video and find it
so I will need a crawler
here is the problem
I just went through the whole video tutorial
I still don't know how to make this application
so I had to review a bit of what I learned
and my notes
then I start to figure out how to write a demo of my crawler
first thing is to figure out how to run python script in vs code
and how to install the modules I need
I looked at projects of other people on github as examples
and try to write something similar
this is the learning method I tend to use
it's good that
crawler is simple
step one is to start a request
step two is
to format the data
you get from the request
the tricky part is
whether you can find the request address
and whether it's legal to request data from that address
this something I've been wondering
technically
it's not allow to use crawler to get data from other websites for business use
but it seems like crawlers are so common
that everyone knows how to do it
so to avoid getting in trouble
I will use Bilibili's open api for practice
after creating bug and debug
I officially wrote my first python script
this took me a bit over two hours
just run these 50-lines of code
it will return my video analytics
now I have the data I can do anything I want with it
for example
there is another open api to
get creator id
then we can use the creator id
and get the video analytics of that creator
to analyze
so we can make a
video analytics platform for Bilibili creators
umm that's actually a pretty good idea
another example is that we can use a chart library
to visualize these data
then I will have a personalized
Bilibili video analytics tool
I'll find out the secret to the algorithm
it seems like I will be closer to 100k now
I was going to do that
but then I researched a bit
and find that there are so many different python chart libraries
to avoid making this video too long
let me know if you are interested in
another episode
of python chart library comparison
I can't help to write the same script using node.js for comparison
since it's the language I'm familiar with
it only took 10 min
now let's compare them
I'm not sure if
I made any mistake
for the same
node is much faster in returning data
but the code amount is the same
it's about 50 lines
in terms of the file size
python scripts are much
light weight than a node project
of course
these are all based on a beginner's perspective
it's not a tutorial
in summary
I think python is actually a
good option for beginners
although it's slower
it's easy and light weight
it allows you to get a feel of programming in a short amount of time
before you run out of interest
besides crawler and data visualization
python is also used for writing tests, office automation
data science, etc
further more, it can also use for backend development
machine learning and much more
but don't expect to get into these fields after you learned the language
like web frontend development, you will need to learn the framework
it takes time to master in these areas
and accumulate project experience
formal education is required in some circumstances
long story short
it's not something you can
go from zero experience to getting a job in a few days
if you are interested in backend development with python
I don't think it's a good fit
because there aren't that many companies just use python for their backend
for what I knew
like the big tech companies I mentioned before
they are only using python for part of their stack
if your goal is to get a job
I think it's a good idea to research
whether there are python jobs are out there in your area
and what you personally wants to get into
python is great as a second programming language
especially for people who work in tech
some simple application of python
like data analysis
coding some productivity tools
it will help
in your day to day work or life
when I was interviewing interns in my previous company
in their resume
they like to include
data analysis in the skill section
even though they are not interviewing a programming or
business analysis position
this skill is great for interviewing
a variety of positions
it will be a big plus
ok that would be all I want to share today
I'm happy to check off another of my new year's resolution
thank you for watching
see you next time
bye bye
浏览更多相关视频
Lecture 1.1 — Why do we need machine learning — [ Deep Learning | Geoffrey Hinton | UofT ]
Python Vs C++ Vs Java!
2023 WebApp Pentesting/Hacking Roadmap // How To Bug Bounty
快速上手了解智能合約(NFT標準) | TON Blockchain, TEP62
[ML News] Jamba, CMD-R+, and other new models (yes, I know this is like a week behind 🙃)
11. Mind vs. Brain: Confessions of a Defector
5.0 / 5 (0 votes)