我代碼錯哪了?萌新程式設計師小白代碼出錯,這才是正確請教方式!

我代碼錯哪了?萌新程序員小白代碼出錯,這才是正確請教方式!

來這裡看看:大佬,我代碼哪錯了?

問題無處不在

我: “大佬,幫我看看這個問題錯在哪了?”

大佬: “你的代碼呢、你的錯誤提示呢?”

我: “好的,我發給你”

我代碼錯哪了?萌新程序員小白代碼出錯,這才是正確請教方式!

大佬: “。。。 再見”

留下一臉懵逼的我

我代碼錯哪了?萌新程序員小白代碼出錯,這才是正確請教方式!

如何解決問題

私聊老妹兒關鍵詞【學習】還可以免費領取一整套的大數據學習資料哦!!!

最簡單的方法是根據錯誤提示,查看對應位置的代碼,Pycharm會提示具體是哪一行代碼有問題,並拋出錯誤。

找到錯誤首先應自己想辦法解決,自己解決又分為幾種:有經驗的大佬看到Error就知道是哪裡有問題了,沒經驗怎麼辦,那就自己去搜索了。

下個結論,你遇到的問題,前人一定遇到過。

所以你只需要把你的錯誤提示搜索就好了。

注意下面,你懂的。(給自己一個好點的環境)

stackoverflow > 知乎

github > CSDN

Github上有一個很有用的 trending ,可以顯示今天或本週或本月最火的項目,例如:

techGay/91porn

我代碼錯哪了?萌新程序員小白代碼出錯,這才是正確請教方式!

Github 作為全球最大的同性交友網站,上面有很多值得我們好好學習的東西。

私聊老妹兒關鍵詞【學習】還可以免費領取一整套的大數據學習資料哦!!!

如何向別人提問

如果你真的像上面哪樣,發一張照片,估計大佬都要吐血了。

在這裡推薦大家使用Github上的 gist ,很適合分享代碼片段。

Instantly share code, notes, and snippets.

例如這樣

Issue in FromRequest #3144

我代碼錯哪了?萌新程序員小白代碼出錯,這才是正確請教方式!

這樣看起來是不是舒服多了

如何才能 永無bug

1、佛祖保佑 永無bug

// _ooOoo_// o8888888o// 88" . "88// (| -_- |)// O\ = /O// ____/`---'\____// . ' \\| |// `.// / \\||| : |||// \// / _||||| -:- |||||- \// | | \\\ - /// | |// | \_| ''\---/'' | |// \ .-\__ `-` ___/-. /// ___`. .' /--.--\ `. . __// ."" '< `.___\__/___.' >'"".// | | : `- \`.;`\ _ /`;.`/ - ` : | |// \ \ `-. \_ __\ /__ _/ .-` / /// ======`-.____`-.___\_____/___.-`____.-'======// `=---='//// .............................................// 佛祖鎮樓 BUG辟易// 佛曰:// 寫字樓裡寫字間,寫字間裡程序員;// 程序人員寫程序,又拿程序換酒錢。// 酒醒只在網上坐,酒醉還來網下眠;// 酒醉酒醒日復日,網上網下年復年。// 但願老死電腦間,不願鞠躬老闆前;// 奔馳寶馬貴者趣,公交自行程序員。// 別人笑我忒瘋癲,我笑自己命太賤;// 不見滿街漂亮妹,哪個歸得程序員?

2、佛系編程 永無bug

No Code

No code is the best way to write secure and reliable applications. Write nothing; deploy nowhere.

Getting Started

Start by not writing any code.

This is just an example application, but imagine it doing anything you want. Adding new features is easy too:

The possibilities are endless.

Building the Application

Now that you have not done anything it's time to build your application:

Yep. That's it. You should see the following output:

Deploying

While you still have not done anything it's time to deploy your application. By running the following command you can deploy your application absolutely nowhere.

It's that simple. And when it comes time to scale the application, all you have to do is:

I know right?

Contributing

You don't.


分享到:


相關文章: