Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

source_code.md 701 B

You have to be logged in to leave a comment. Sign In

如何阅读源代码呢?

1. 从0到1。什么意思呢?拿到一个源代码,先不要想着全部理解,你应该想着先跑通一个小demo。从demo里面慢慢认识源码。

2. 学会看官方英文注释,官方的英文注释言简意赅。一定一定要仔细阅读。

3. 学会debug。阅读源代码很容易不知所云,这个时候debug一下简直不要太酸爽!对于基础的断点,调点,单步调试,添加config文件要熟练。实在不行,print也不赖。

4. 跑源代码之前,先去找通俗易懂的解读视频,视频为第一位。视频能帮助你迅速入门并掌握。再辅以好的技术博客,问题就不大了。

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...