請高手指點迷津,我手表上的英文代表的是什么意思?
來源:Watch手表之家 發(fā)布時間:2023-10-31 10:18:45TITUS:鐵達時
STAINLESS? STEEL:不銹鋼
CASE? 316L:是不銹鋼的指標(biāo)
06-1299:型號
手表表盤直徑是什么意思?
表盤直徑是外圈,面盤直徑是內(nèi)徑,求采納 如:◆規(guī)格: ? 表徑=約4.15 cm ? 面盤=約3.6 cm ? 厚度=約1.0 cm ? 重量約=145g
如何學(xué)編程?
編程是編定程序的中文簡稱,就是讓計算機代碼解決某個問題,對某個計算體系規(guī)定一定的運算方式,使計算體系按照該計算方式運行,并最終得到相應(yīng)結(jié)果的過程。編程能提高邏輯思維能力,加強計算能力。
編程語言
Python
Python是一種面向?qū)ο笥兄a簡潔、可讀性強特點的解釋型計算機程序設(shè)計語言。代碼簡潔是因為它把許多的復(fù)雜的操作封裝起來,將C語言中麻煩的指針和內(nèi)存管理對開發(fā)者隱藏起來,使得在開發(fā)過程中,無須在意這部分的細節(jié)。另外Python這門語言強制用戶用縮進進行排版,若不好好排版,則代碼編譯無法通過,或者運行過程會出現(xiàn)錯誤。
C語言
C語言是一門面向過程的、抽象化的廣泛應(yīng)用于底層開發(fā)的通用程序設(shè)計語言,能以簡易的方式編譯和處理低級存儲器。C語言既具有高級語言的特點,又具有匯編語言的特點,是僅產(chǎn)生少量機器語言以及不需要任何運行環(huán)境支持便能運行的高效率程序設(shè)計語言。
是有簡潔的語言、具有結(jié)構(gòu)化的控制語句、豐富的數(shù)據(jù)類型、豐富的運算符、可對物理地址進行直接操作、代碼具有較好的可移植性、可生成高質(zhì)量、目標(biāo)代碼執(zhí)行效率高的程序。
Java
Java通過面向作為靜態(tài)對象的編程語言的代表,可以充分的實現(xiàn)面向的對象理論的編程語言,有簡單性、功能強大、分布式、健壯性、安全性、平臺獨立與可移植性、多線程及動態(tài)性的特點。
Java支持在網(wǎng)絡(luò)上應(yīng)用,Java既支持各種層次的網(wǎng)絡(luò)連接,又以Socket類支持可靠的流(stream)網(wǎng)絡(luò)連接,它是分布式語言。所以用戶可以產(chǎn)生分布式的客戶機和服務(wù)器。網(wǎng)絡(luò)變成軟件應(yīng)用的分布運載工具。Java程序只要編寫一次,就可到處運行。
PHP
PHP是一種被廣泛應(yīng)用的開放源代碼的多用途腳本語言,它可嵌入到 HTML中,尤其適合 web 開發(fā)。
使用 PHP 的最大的好處是它對于初學(xué)者來說極其簡單,同時也給專業(yè)的程序員提供了各種高級的特性,只需幾個小時就可以自己寫一些簡單的腳本。盡管 PHP 的開發(fā)是以服務(wù)端腳本為目的,但事實上其功能遠不局限于此。
GO
Go語言(又稱 Golang)是一種靜態(tài)強類型、編譯型語言,是一個開源編程環(huán)境,可以輕松構(gòu)建簡單、可靠和高效的軟件。Go 語言語法與 C 相近,但功能上有:內(nèi)存安全,GC(垃圾回收),結(jié)構(gòu)形態(tài)及 CSP-style 并發(fā)計算。Go 內(nèi)嵌了關(guān)聯(lián)數(shù)組(也稱為哈希表(Hashes)或字典(Dictionaries)),就像字符串類型一樣。
對比
python和c語言的區(qū)別主要體現(xiàn)在:語言類型、內(nèi)存管理、速度、應(yīng)用、運行、對象、聲明、測試和調(diào)試難度、復(fù)雜度、學(xué)習(xí)程度。 測試和調(diào)試難度不同:Python相對其他語言而言是非常簡單的語言,高度集成,代碼量少。Python中的測試和調(diào)試更容易;C中測試和調(diào)試更難。 學(xué)習(xí)難度不同:Python:Python程序更易于學(xué)習(xí),編寫和閱讀;C語言:C程序語法比Python更難。
python 跟 java 一樣是強類型語言,也就是說它不會根據(jù)環(huán)境變化自動改變數(shù)據(jù)類型。python 是動態(tài)語言,而 java 是靜態(tài)語言。也就是說 python 在編程時,永遠不用給任何變量指定數(shù)據(jù)類型,而 java 寫程序時必須聲明所有變量的數(shù)據(jù)類型。
python 的模塊類似于 java 的 class,不過python模塊導(dǎo)入會執(zhí)行 代碼的內(nèi)容,而 java 不會。python 與 java 的執(zhí)行方式還是蠻像的,都是將源碼編譯成 byte code 然后交給相應(yīng)的虛擬機去執(zhí)行。
Python的框架數(shù)量較少,而PHP中成熟的框架比較多;PHP是面向web的語言,而Python是多用途語言,也可以用于web開發(fā);Python使用非常嚴(yán)格的縮進強制執(zhí)行,使它比PHP更具可讀性。
學(xué)習(xí)思路
認(rèn)識編程
編程語言(programming language)又稱程序設(shè)計語言,是一組用特定語言編寫的用于執(zhí)行特定任務(wù)的指令。主要用于開發(fā)桌面應(yīng)用、操作系統(tǒng)、網(wǎng)站、移動應(yīng)用等。
低級編程語言
它基于二進制數(shù) 0 和 1 工作,處理器直接運行低級程序,不需要編譯器或解釋器,因此用低級語言編寫的程序可以運行得非常快。
低級語言進一步分為兩部分
機器語言
機器語言也稱為機器代碼或目標(biāo)代碼,更容易閱讀,因為它通常以二進制或十六進制形式(基數(shù) 16)形式顯示。
它不需要翻譯器來轉(zhuǎn)換程序,因為計算機直接理解機器語言程序。
匯編語言
匯編語言是為特定處理器設(shè)計的,它以象征性和人類可理解的形式表示一組指令。它使用匯編程序?qū)R編語言轉(zhuǎn)換為機器語言。
中級編程語言
中級編程語言介于低級編程語言和高級編程語言之間。
它也被稱為中間程序語言和偽語言。
中級編程語言的優(yōu)點是支持高級編程的特性,是一種用戶友好的語言,與機器語言和人類語言密切相關(guān)。
例如:C、C++
高級編程語言
高級編程語言 (HLL) 旨在開發(fā)用戶友好的軟件程序和網(wǎng)站。
這種編程語言需要編譯器或解釋器將程序翻譯成機器語言(執(zhí)行程序)。
示例:Python、Java、JavaScript、PHP、C#、C++ 等。
編程實踐
學(xué)習(xí)編程語言的過程簡單描述為:過、抄、仿、改、調(diào)、看、練、創(chuàng)、悟。
過
基礎(chǔ)知識點不求深解,語言什么樣的,適用場合、基本語法格式
抄代碼
從書上抄、例子中抄、邊抄邊想邊想邊回憶語法
模仿改
仿照給出的代碼寫出自己的代碼
勤調(diào)試
不斷調(diào)試驗證自己想法,繼續(xù)思考,再次驗證。熟悉調(diào)試工具調(diào)試方法
看n遍
出錯或者遇到問題時,將代碼從頭到尾看n遍直到快記住,找出問題原因
練
2-5步三遍以上
創(chuàng)新
拿出一個沒有寫過的根據(jù)要求,一步一步寫出來,寫不出來參考6
悟
主動找到寫代碼的感覺和成就感,保持下去。
選擇大于努力,只有切入一個適合自己的開發(fā)方向,才能持續(xù)進步。關(guān)于開發(fā)方向,我有以下兩個選擇標(biāo)準(zhǔn)。
興趣
學(xué)習(xí)編程是一個非??菰锏倪^程,內(nèi)容多,時間長,成本高,即使報名了培訓(xùn)班也學(xué)不會,所以,我們首先要選擇自己感興趣的一個開發(fā)方向,這樣不但能快速學(xué)習(xí),以后還能持續(xù)進步。學(xué)習(xí)編程的過程是比較艱苦的,沒有興趣很難硬抗下來,此處的興趣,是指別人無法撼動的熱愛,是工作之余讓你放松的事情。如果你只是有過某種想法,別人告訴你這個想法不靠譜,你就放棄了,這頂多是一時的雞血。
學(xué)習(xí)方式
費曼學(xué)習(xí)法
在學(xué)完一個東西之后去給別人講明白,注意是講給別人聽,當(dāng)你寫成文章發(fā)表在網(wǎng)上的時候,你自然會去用更通俗的語言,更清晰的邏輯去講述這個事物背后的邏輯。這個過程是對自己學(xué)習(xí)的一個檢驗,也是加深映像整理思路的重要過程。
那么如果你是去記筆記的話,很有可能你會傾向于去照抄,或是不完全照抄,以“提綱”或是“知識點”的形式抄在本子上。說句實話,照抄的筆記真的沒用,因為現(xiàn)在搜索引擎的能力已經(jīng)可以讓你把大多數(shù)東西快速找到,你為什么還要照抄到筆記本上呢?
從功利的角度考慮,技術(shù)文章的寫作,別人可以直接訪問,也可以逐漸累積你的影響力,一個好的個人技術(shù)博客,會給你的簡歷加分很多,而一個厚厚的筆記本,沒有人會管你記了什么。
做好筆記
大多數(shù)人沒有過目不忘的神技,學(xué)了也不一定馬上掌握,需要過后花時間慢慢領(lǐng)悟,而且還有忘掉的風(fēng)險,所以對于重要的知識點都要做好筆記。編程的過程中總會遇到各種各樣的問題,比如編程環(huán)境的配置,常用的快捷鍵,編程過程中的錯誤、異常,軟件更新問題等等。面對這些問題都是如何解決的,一定要記錄下來,一是增加自己解決問題的經(jīng)驗,而是以防下次出現(xiàn)。
多看官方文檔
外文資料互聯(lián)網(wǎng)是一個更新迭代很快的行業(yè),所有編程語言都會不斷的更新新功能和修復(fù)舊Bug,網(wǎng)上查的資料很有可能是舊的解決方案,現(xiàn)在已經(jīng)不適用了。所以最好最快的方法就是查看官方文檔。
進入行業(yè)圈子
只有進入行業(yè)圈子與其他人交流,你才了解最新的行業(yè)動態(tài),才知道自己需要更新哪些技能。
動手做項目
學(xué)習(xí)編程的最終目的就是用所學(xué)的做出具有一定功能的項目,而做項目又是最好的學(xué)習(xí)和鞏固知識的方式。如果前期能力不足就先做一些簡單的功能模塊,一步一步慢慢來,不要一開始就要實現(xiàn)各種酷炫炸天功能,遇到不會的就在網(wǎng)上查, 現(xiàn)在互聯(lián)網(wǎng)這么發(fā)達,獲取資源也及其方便。而且開發(fā)前也最好在網(wǎng)上查一下有沒有已經(jīng)成型的框架或模板,什么都自己做一是很耗費時間,二是自己技術(shù)能力不足還可能留下不少坑。
學(xué)習(xí)Python
安裝編程環(huán)境
第一步:訪問Python官網(wǎng),獲取最新安裝程序。
第二步:運行下載的安裝程序,注意勾選“Add Python3.7 to PATH”,然后選擇個性化安裝,即“Customize installation”。
第三步:確保“pip”被勾選上,之后安裝各種庫需要用到pip。
第四步:高級選項,需要的可以修改安裝目錄,通常沒有需要修改的,直接點“Install”。
第五步:等待程序自動安裝完成。
第六步:出現(xiàn)如下界面,說明安裝已完成。
第七步:驗證方法,Windows+R 鍵打開“運行”窗口,輸入cmd運行,進入命令提示窗口,再輸入python,進入Python的命令模式,輸入 print("Hello"),結(jié)果輸出了 Hello,如下圖所示,確定開發(fā)環(huán)境已安裝完成。
運行環(huán)境
Hello World!
命令行
在Linux命令行輸入:$python
將直接進入python。然后在命令行提示符>>>后面輸入:>>>print('Hello World!')
可以看到,隨后在屏幕上輸出:
Hello World!
print是一個常用函數(shù),其功能就是輸出括號中得字符串。
(在Python 2.x中,print還可以是一個關(guān)鍵字,可寫成print 'Hello World!',但這在3.x中行不通 )
小程序
另一個使用Python的方法,是寫一個Python程序。用文本編輯器寫一個.py結(jié)尾的文件,比如說hello.py
在hello.py中寫入如下,并保存:print('Hello World!')
退出文本編輯器,然后在命令行輸入:$python hello.py
來運行hello.py。可以看到Python隨后輸出Hello World!
腳本
我們還可以把Python程序hello.py改成一個可執(zhí)行的腳本,直接執(zhí)行:#!/usr/bin/env python
print('Hello World!')
需要修改上面程序的權(quán)限為可執(zhí)行:chmod 755 hello.py
然后再命令行中,輸入./hello.py
就可以直接運行了。
基本數(shù)據(jù)類型
變量不聲明
Python的變量不需要聲明,你可以直接輸入:>>>a = 10
那么你的內(nèi)存里就有了一個變量a, 它的值是10,它的類型是integer (整數(shù))。 在此之前你不需要做什么特別的聲明,而數(shù)據(jù)類型是Python自動決定的。
>>>print(a)
>>>print(type(a))
那么會有如下輸出:
10
這里,我們學(xué)到一個內(nèi)置函數(shù)type(),用以查詢變量的類型。
回收變量名
如果你想讓a存儲不同的數(shù)據(jù),你不需要刪除原有變量就可以直接賦值。
>>>a = 1.3
>>>print(a,type(a))
會有如下輸出
1.3
序列
sequence(序列)是一組有順序的元素的集合,(嚴(yán)格的說,是對象的集合,但鑒于我們還沒有引入“對象”概念,暫時說元素)序列可以包含一個或多個元素,也可以沒有任何元素。
我們之前所說的基本數(shù)據(jù)類型,都可以作為序列的元素。元素還可以是另一個序列,以及我們以后要介紹的其他對象。
序列有兩種:tuple(定值表; 也有翻譯為元組) 和 list (表)
>>>s1 = (2, 1.3, 'love', 5.6, 9, 12, False) # s1是一個tuple
>>>s2 = [True, 5, 'smile'] # s2是一個list
>>>print(s1,type(s1))
>>>print(s2,type(s2))
tuple和list的主要區(qū)別在于,一旦建立,tuple的各個元素不可再變更,而list的各個元素可以再變更。
一個序列作為另一個序列的元素
>>>s3 = [1,[3,4,5]]
空序列
>>>s4 = []
自學(xué)
網(wǎng)站
菜鳥網(wǎng)站
這個python教程很適合小白學(xué)習(xí),沒有高深的原理,照著教程學(xué)就完事了。
菜鳥教程是一個提供免費編程學(xué)習(xí)的網(wǎng)站,里面不但能學(xué)到編程知識,還能運用在線編程工具,使你在學(xué)習(xí)的過程中得到發(fā)揮,實踐得真理,邊學(xué)邊做中讓基礎(chǔ)打得更穩(wěn),讓自己的知識更加穩(wěn)固。在自己有不明白不理解的地方可以在網(wǎng)站的用戶筆記中尋找大佬們的筆記,把自己所學(xué)和技術(shù)大佬的經(jīng)驗所融合,使自己更好地提升自己的能力。
菜鳥教程內(nèi)容豐富,例如前端熱門語言HTML5、CSS3、JavaScript、Vue等它該有的都有,都會從最基礎(chǔ)的開始教,讓剛學(xué)編程的小白由淺及深,一看就懂。每個知識點都有實例可以動手,直接在頁面內(nèi)做你想要的效果真的非常棒。菜鳥的排版簡潔清晰有序,內(nèi)容一針見血,讓你一看就能明白其知識點的含義。
菜鳥教程不僅前端教程語言豐富,后端的Java、PHP、Python更是一應(yīng)俱全,當(dāng)然數(shù)據(jù)庫、移動端、XML、ASP.NET、Web Service、開發(fā)工具和網(wǎng)站建設(shè)也是應(yīng)有盡有,菜鳥教程有學(xué)到的知識如此之多,奮斗吧少年。
廖雪峰的官方網(wǎng)站
廖雪峰的官方網(wǎng)站比較推薦新手程序員學(xué)習(xí)前端,這個網(wǎng)站的教學(xué)視頻的講解相對來說會比較生動,沒有其他教程那么死板,看起來也不至于那么犯困,也更便于新手去理解。總的來說,廖雪峰的官方網(wǎng)站作為一款啟蒙類的前端學(xué)習(xí)網(wǎng)站還是相當(dāng)不錯的。
Python官方教程
這是Python官方出品的教程,可搭配Python標(biāo)準(zhǔn)庫一起學(xué)。
書籍
《Python編程從入門到實踐(第2版)》
作者:埃里克·馬瑟斯 (EricMatthes)袁國忠 譯
ISBN:
出版:人民郵電出版社
本書是針對所有層次Python讀者而作的Python門書。全書分兩部分:部分介紹用Python編程所必須了解的基本概念,包括強大的Python庫和工具,以及列表、字典、if語句、類、文件與異常、代碼測試等內(nèi)容;第二部分將理論付諸實踐,講解如何發(fā)三個項目,包括簡單的2D游戲、利用數(shù)據(jù)生成交互式的信息圖以及創(chuàng)建和定制簡單的Web應(yīng)用,并幫助讀者解決常見編程問題和困惑。
《像計算機科學(xué)家一樣學(xué)Python》
ISBN:
作者:艾倫 B. 唐尼(Allen B. Downey)
出版:人民郵電出版社
本書以培養(yǎng)讀者以計算機科學(xué)家一樣的思維方式來理解Python語言編程。貫穿全書的主體是如何思考、設(shè)計、發(fā)的方法,而具體的編程語言,只是提供了一個具體場景方便介紹的媒介。全書共21章,詳細介紹Python語言編程的方方面面。本書從基本的編程概念始講起,包括語言的語法和語義,而且每個編程概念都有清晰的定義,引領(lǐng)讀者循序漸地學(xué)習(xí)變量、表達式、語句、函數(shù)和數(shù)據(jù)結(jié)構(gòu)。書中還探討了如何處理文件和數(shù)據(jù)庫,如何理解對象、方法和面向?qū)ο缶幊?,如何使用調(diào)試技巧來修正語法錯誤、運行時錯誤和語義錯誤。
《計算機科學(xué)叢書:Java編程思想》
ISBN:
作者:[美] Bruce Eckel
出版:機械工業(yè)出版社
本書的作者擁有多年教學(xué)經(jīng)驗,對C、C++以及Java語言都有獨到、深入的見解,以通俗易懂及小而直接的示例解釋了一個個晦澀抽象的概念。本書共22章,包括操作符、控制執(zhí)行流程、訪問權(quán)限控制、復(fù)用類、多態(tài)、接口、通過異常處理錯誤、字符串、泛型、數(shù)組、容器深入研究、JavaI/O系統(tǒng)、枚舉類型、并發(fā)以及圖形化用戶界面等內(nèi)容。這些豐富的內(nèi)容,包含了Java語言基礎(chǔ)語法以及高級特性,適合各個層次的Java程序員閱讀,同時也是高等院校講授面向?qū)ο蟪绦蛟O(shè)計語言以及Java語言的好教材和參考書。
《瘋狂Java講義》
ISBN:
作者:李剛
出版:電子工業(yè)出版社
《瘋狂Java講義(第4版)》深入介紹了Java編程的相關(guān)方面,《瘋狂Java講義(第4版)》內(nèi)容覆蓋了Java的基本語法結(jié)構(gòu)、Java的面向?qū)ο筇卣?、Java集合框架體系、Java泛型、異常處理、Java GUI編程、JDBC數(shù)據(jù)庫編程、Java注釋、Java的IO流體系、Java多線程編程、Java網(wǎng)絡(luò)通信編程和Java反射機制。覆蓋了java.lang、java.util、java.text、java.io和java.nio、java.sql、java.awt、javax.swing包下絕大部分類和接口。本書重點介紹了Java 9的模塊化系統(tǒng),還詳細介紹了Java 9的jshell工具、多版本JAR包、匿名內(nèi)部類的菱形語法、增強的try語句、私有接口方法,以及Java 9新增的各種API功能。
%3Chowto_content%3E[{"type":"paragraph","attrs":{"is_abstract":true},"children":[{"type":"text","text":"編程是編定程序的中文簡稱,就是讓計算機代碼解決某個問題,對某個計算體系規(guī)定一定的運算方式,使計算體系按照該計算方式運行,并最終得到相應(yīng)結(jié)果的過程","id":""},{"type":"text","text":"。編程能提高邏輯思維能力,加強計算能力。","id":""}],"text":"","id":"WceadiusyoyOwaxoNSsceBGjnVd"},{"type":"heading","attrs":{"level":1},"children":[{"type":"text","text":"編程語言","id":""}],"text":"","id":"Oqa2diWSioCqoexAhV7cd5qbnLd"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"Python","id":""}],"text":"","id":"RYCIdicsYoyiUgx6drTcXYVMn4d"},{"type":"paragraph","children":[{"type":"text","text":"Python是一種面向?qū)ο笥兄a簡潔、可讀性強特點的解釋型計算機程序設(shè)計語言。代碼簡潔是因為它把許多的復(fù)雜的操作封裝起來,將C語言中麻煩的指針和內(nèi)存管理對開發(fā)者隱藏起來,使得在開發(fā)過程中,無須在意這部分的細節(jié)。另外Python這門語言強制用戶用縮進進行排版,若不好好排版,則代碼編譯無法通過,或者運行過程會出現(xiàn)錯誤。 ","id":""}],"text":"","id":"SeiEdQ4GAoc8Koxm6Oucd3MonOb"},{"type":"image","attrs":{"height":701,"note":[{"type":"text","text":"Python","id":""}],"url":"},"text":"","id":"DSA6demiCo8YmgxGYDmcdbmenQf"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"C語言","id":""}],"text":"","id":"RKKodkW2Wo0muoxaYdScS9gDnse"},{"type":"paragraph","children":[{"type":"text","text":"C語言是一門面向過程的、抽象化的廣泛應(yīng)用于底層開發(fā)的通用程序設(shè)計語言,能以簡易的方式編譯和處理低級存儲器。C語言既具有高級語言的特點,又具有匯編語言的特點,是僅產(chǎn)生少量機器語言以及不需要任何運行環(huán)境支持便能運行的高效率程序設(shè)計語言。","id":""}],"text":"","id":"WkgAdki6koYcsSxzF93csMeynCk"},{"type":"paragraph","children":[{"type":"text","text":"是有簡潔的語言、具有結(jié)構(gòu)化的控制語句、豐富的數(shù)據(jù)類型、豐富的運算符、可對物理地址進行直接操作、代碼具有較好的可移植性、可生成高質(zhì)量、目標(biāo)代碼執(zhí)行效率高的程序。","id":""}],"text":"","id":"FkCQdiCsmo40iqxg7ujcPBy9nHe"},{"type":"image","attrs":{"height":806,"note":[{"type":"text","text":"C語言","id":""}],"url":"},"text":"","id":"ME8ad6QuAoiWo2xe8zCc3gXrnog"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"Java","id":""}],"text":"","id":"FWK8d2GSUoMME2xUxHzc8kMYnQR"},{"type":"paragraph","children":[{"type":"text","text":"Java通過面向作為靜態(tài)對象的編程語言的代表,可以充分的實現(xiàn)面向的對象理論的編程語言,有簡單性、功能強大、分布式、健壯性、安全性、平臺獨立與可移植性、多線程及動態(tài)性的特點。 ","id":""}],"text":"","id":"TeIod6souoE4EkxgjEfcOZkLnoc"},{"type":"paragraph","children":[{"type":"text","text":"Java支持在網(wǎng)絡(luò)上應(yīng)用,Java既支持各種層次的網(wǎng)絡(luò)連接,又以Socket類支持可靠的流(stream)網(wǎng)絡(luò)連接,它是分布式語言。所以用戶可以產(chǎn)生分布式的客戶機和服務(wù)器。網(wǎng)絡(luò)變成軟件應(yīng)用的分布運載工具。Java程序只要編寫一次,就可到處運行。","id":""}],"text":"","id":"Te4udsisCoK44gxMpuPcDy11nfd"},{"type":"image","attrs":{"height":839,"note":[{"type":"text","text":"Java","id":""}],"url":"},"text":"","id":"SUW6d0aw2oskC4x2FMSc3WhNnRg"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"PHP","id":""}],"text":"","id":"Ic6kdo08aoY4GuxeY6Qc3Z8nnNe"},{"type":"paragraph","children":[{"type":"text","text":"PHP是一種被廣泛應(yīng)用的開放源代碼的多用途腳本語言,它可嵌入到 HTML中,尤其適合 web 開發(fā)。","id":""}],"text":"","id":"IwQ8dKQCeoGAmixqM7BcXdgUnAd"},{"type":"paragraph","children":[{"type":"text","text":"使用 PHP 的最大的好處是它對于初學(xué)者來說極其簡單,同時也給專業(yè)的程序員提供了各種高級的特性,只需幾個小時就可以自己寫一些簡單的腳本。盡管 PHP 的開發(fā)是以服務(wù)端腳本為目的,但事實上其功能遠不局限于此。","id":""}],"text":"","id":"DW0Odakc6ouW6Kxu6kPcdPF3nZd"},{"type":"image","attrs":{"height":648,"note":[{"type":"text","text":"PHP","id":""}],"url":"},"text":"","id":"Naq2duscgogQ2oxYjg2cosy1nEe"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"GO","id":""}],"text":"","id":"CwWwdCYeAoMuMuxCiNpcqJKpnRg"},{"type":"paragraph","children":[{"type":"text","text":"Go語言(又稱 Golang)是一種靜態(tài)強類型、編譯型語言,是一個開源編程環(huán)境,可以輕松構(gòu)建簡單、可靠和高效的軟件。Go 語言語法與 C 相近,但功能上有:內(nèi)存安全,GC(垃圾回收),結(jié)構(gòu)形態(tài)及 CSP-style 并發(fā)計算。Go 內(nèi)嵌了關(guān)聯(lián)數(shù)組(也稱為哈希表(Hashes)或字典(Dictionaries)),就像字符串類型一樣。","id":""}],"text":"","id":"SIY6dO8ecoGoOOxmUVPcViIAnxb"},{"type":"image","attrs":{"height":772,"note":[{"type":"text","text":"GO","id":""}],"url":"},"text":"","id":"GuiUdc6UCoKUWGxaCogc2jcrnFe"},{"type":"heading","attrs":{"level":1},"children":[{"type":"text","text":"對比","id":""}],"text":"","id":"EGqmdKMsGogUeexukQ5cA2wTnQf"},{"type":"paragraph","children":[{"type":"text","text":"python和c語言的區(qū)別主要體現(xiàn)在:語言類型、內(nèi)存管理、速度、應(yīng)用、運行、對象、聲明、測試和調(diào)試難度、復(fù)雜度、學(xué)習(xí)程度。 測試和調(diào)試難度不同:Python相對其他語言而言是非常簡單的語言,高度集成,代碼量少。Python中的測試和調(diào)試更容易;C中測試和調(diào)試更難。 學(xué)習(xí)難度不同:Python:Python程序更易于學(xué)習(xí),編寫和閱讀;C語言:C程序語法比Python更難。","id":""}],"text":"","id":"HEyKduA4Iow6Kwx8ZiCcPQaVnHd"},{"type":"paragraph","children":[{"type":"text","text":"python 跟 java 一樣是強類型語言,也就是說它不會根據(jù)環(huán)境變化自動改變數(shù)據(jù)類型。python 是動態(tài)語言,而 java 是靜態(tài)語言。也就是說 python 在編程時,永遠不用給任何變量指定數(shù)據(jù)類型,而 java 寫程序時必須聲明所有變量的數(shù)據(jù)類型。","id":""}],"text":"","id":"I6yAdOUQqoQSIYxs7XVcPwlSnMe"},{"type":"paragraph","children":[{"type":"text","text":"python 的模塊類似于 java 的 class,不過python模塊導(dǎo)入會執(zhí)行 代碼的內(nèi)容,而 java 不會。python 與 java 的執(zhí)行方式還是蠻像的,都是將源碼編譯成 byte code 然后交給相應(yīng)的虛擬機去執(zhí)行。","id":""}],"text":"","id":"VmgOds4Ceoi0KoxGa8nc0GLDneb"},{"type":"paragraph","children":[{"type":"text","text":"Python的框架數(shù)量較少,而PHP中成熟的框架比較多;PHP是面向web的語言,而Python是多用途語言,也可以用于web開發(fā);Python使用非常嚴(yán)格的縮進強制執(zhí)行,使它比PHP更具可讀性。","id":""}],"text":"","id":"MW22d02SsoU2oYxesy1cIEfsnYb"},{"type":"paragraph","children":[{"type":"text","text":"","id":""}],"text":"","id":"SA4kdwiSIoMW42xCGzDcMMyXnfe"},{"type":"heading","attrs":{"level":1},"children":[{"type":"text","text":"學(xué)習(xí)思路","id":""}],"text":"","id":"ECkydGqiIoEmKoxQzshckC4rncd"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"認(rèn)識編程","id":""}],"text":"","id":"IkSQdA02Ko64KKxoHAGc6cEwnIb"},{"type":"paragraph","children":[{"type":"text","text":"編程語言(programming language)又稱程序設(shè)計語言,是一組用特定語言編寫的用于執(zhí)行特定任務(wù)的指令。主要用于開發(fā)桌面應(yīng)用、操作系統(tǒng)、網(wǎng)站、移動應(yīng)用等。","id":""}],"text":"","id":"HM2udQ0giowuekxoV1kchShynhc"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"低級編程語言","id":""}],"text":"","id":"CkEQdgiGooaKGaxesABch5T1nlh"},{"type":"paragraph","children":[{"type":"text","text":"它基于二進制數(shù) 0 和 1 工作,處理器直接運行低級程序,不需要編譯器或解釋器,因此用低級語言編寫的程序可以運行得非???。","id":""}],"text":"","id":"UgoMde6QIou8yAxambScEu1vnOb"},{"type":"paragraph","children":[{"type":"text","text":"低級語言進一步分為兩部分","id":""}],"text":"","id":"ASy6dMoGooWsKaxeCDAcTUajnde"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"機器語言","id":""}],"text":"","id":"Z8MKdYOOmoucO0xai2uc1TUKnTd"},{"type":"paragraph","children":[{"type":"text","text":"機器語言也稱為機器代碼或目標(biāo)代碼,更容易閱讀,因為它通常以二進制或十六進制形式(基數(shù) 16)形式顯示。","id":""}],"text":"","id":"RIgMdsykeoaykIxawjVcRE7HnXf"},{"type":"paragraph","children":[{"type":"text","text":"它不需要翻譯器來轉(zhuǎn)換程序,因為計算機直接理解機器語言程序。","id":""}],"text":"","id":"LMsSdcWGsooA00xgzJUcR80Inuf"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":" 匯編語言","id":""}],"text":"","id":"Xi0gdKkgGo0oKYxE0vacrHAtngb"},{"type":"paragraph","children":[{"type":"text","text":"匯編語言是為特定處理器設(shè)計的,它以象征性和人類可理解的形式表示一組指令。它使用匯編程序?qū)R編語言轉(zhuǎn)換為機器語言。","id":""}],"text":"","id":"GYOQdMKQuoGkoExyYdkcuU2anIf"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"中級編程語言","id":""}],"text":"","id":"RGmIdsSwmoY8A2x89NUcdbWbnjg"},{"type":"paragraph","children":[{"type":"text","text":"中級編程語言介于低級編程語言和高級編程語言之間。","id":""}],"text":"","id":"Q822d2sssoQQGYxAzK6c9GqFnbd"},{"type":"paragraph","children":[{"type":"text","text":"它也被稱為中間程序語言和偽語言。","id":""}],"text":"","id":"BuG2d8s6AoiIWCxGQt1cGdbgneg"},{"type":"paragraph","children":[{"type":"text","text":"中級編程語言的優(yōu)點是支持高級編程的特性,是一種用戶友好的語言,與機器語言和人類語言密切相關(guān)。","id":""}],"text":"","id":"FIg6dMMGaoYSu0xSyhpcKu46nPh"},{"type":"paragraph","children":[{"type":"text","text":"例如:C、C++","id":""}],"text":"","id":"LK8sduKWaoa0oUxQXspcudVbnid"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"高級編程語言","id":""}],"text":"","id":"FaYsdG0KqoOGW6xa4u0c0UQVn9c"},{"type":"paragraph","children":[{"type":"text","text":"高級編程語言 (HLL) 旨在開發(fā)用戶友好的軟件程序和網(wǎng)站。","id":""}],"text":"","id":"Rsi4dE64WoykEkxzYAIcCNc8nbH"},{"type":"paragraph","children":[{"type":"text","text":"這種編程語言需要編譯器或解釋器將程序翻譯成機器語言(執(zhí)行程序)。","id":""}],"text":"","id":"IOqmdGCEcoeC2wxXJElc68FsnvL"},{"type":"paragraph","children":[{"type":"text","text":"示例:Python、Java、JavaScript、PHP、C#、C++ 等。","id":""}],"text":"","id":"CgagdYoyyoQMCwxJ65zcUJF6ntC"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"編程實踐","id":""}],"text":"","id":"KGCQdQuyyoIu8Cx8DxYcWwFGnXf"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"學(xué)習(xí)編程語言的過程簡單描述為:過、抄、仿、改、調(diào)、看、練、創(chuàng)、悟。","id":""}],"text":"","id":"JUUOdqi2Ko6mSix0qMBcv94pnAb"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"過","id":""}],"text":"","id":"HqSsduwsUoqSamxyGKWcWlLqnDd"},{"type":"paragraph","children":[{"type":"text","text":"基礎(chǔ)知識點不求深解,語言什么樣的,適用場合、基本語法格式","id":""}],"text":"","id":"XO0mdIAcMoOisgxuAb6cTIvHn9I"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"抄代碼","id":""}],"text":"","id":"ZwqWdC2AioWsWGxNBikcRf0unBf"},{"type":"paragraph","children":[{"type":"text","text":"從書上抄、例子中抄、邊抄邊想邊想邊回憶語法","id":""}],"text":"","id":"XQWmdmoMcoQ82axuI6Lcjb6knDe"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"模仿改","id":""}],"text":"","id":"WOc0dUWuAogWYAx8vZycJ1OYnfd"},{"type":"paragraph","children":[{"type":"text","text":"仿照給出的代碼寫出自己的代碼","id":""}],"text":"","id":"Iokkd0EewoMSMuxqCAKch8tRnZf"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"勤調(diào)試","id":""}],"text":"","id":"CCIsd2secoIAiOxUXGhcQ55Mncc"},{"type":"paragraph","children":[{"type":"text","text":"不斷調(diào)試驗證自己想法,繼續(xù)思考,再次驗證。熟悉調(diào)試工具調(diào)試方法","id":""}],"text":"","id":"Sg8CdMOy8oMyysxC0jyc1mzunff"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"看n遍","id":""}],"text":"","id":"UW4Id0cOooa6EAxIro7c3bT5nle"},{"type":"paragraph","children":[{"type":"text","text":"出錯或者遇到問題時,將代碼從頭到尾看n遍直到快記住,找出問題原因","id":""}],"text":"","id":"ROsUdMEyQoewGUxB0JWcntn7nh6"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"練","id":""}],"text":"","id":"Ag2EdIGQQowSOOxRfD2cRMnOnNl"},{"type":"paragraph","children":[{"type":"text","text":"2-5步三遍以上","id":""}],"text":"","id":"D8eod4eqmoEUcQx0XNVcgNE9n7Z"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"創(chuàng)新","id":""}],"text":"","id":"JqU2damiUoQm4CxUSSDcpg16nAn"},{"type":"paragraph","children":[{"type":"text","text":"拿出一個沒有寫過的根據(jù)要求,一步一步寫出來,寫不出來參考6","id":""}],"text":"","id":"DIeidUEkooIGGWxmAUQcWltanhh"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"悟","id":""}],"text":"","id":"V4ikdSQY4oacQWxQ3RocOJTbnQc"},{"type":"paragraph","children":[{"type":"text","text":"主動找到寫代碼的感覺和成就感,保持下去。","id":""}],"text":"","id":"ZOCqd80k8oi8GgxkFcUcGuxan6b"},{"type":"paragraph","children":[{"type":"text","text":"選擇大于努力,只有切入一個適合自己的開發(fā)方向,才能持續(xù)進步。關(guān)于開發(fā)方向,我有以下兩個選擇標(biāo)準(zhǔn)。 ","id":""}],"text":"","id":"R620d6Qwko6O4gxeS37cRQxjnwd"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":" 興趣","id":""}],"text":"","id":"WCkGd64Gwo6UcqxoV8Icg1G8nCf"},{"type":"paragraph","children":[{"type":"text","text":"學(xué)習(xí)編程是一個非??菰锏倪^程,內(nèi)容多,時間長,成本高,即使報名了培訓(xùn)班也學(xué)不會,所以,我們首先要選擇自己感興趣的一個開發(fā)方向,這樣不但能快速學(xué)習(xí),以后還能持續(xù)進步。學(xué)習(xí)編程的過程是比較艱苦的,沒有興趣很難硬抗下來,此處的興趣,是指別人無法撼動的熱愛,是工作之余讓你放松的事情。如果你只是有過某種想法,別人告訴你這個想法不靠譜,你就放棄了,這頂多是一時的雞血。","id":""}],"text":"","id":"BgqEdSkuMoqmqExFM9Dc7lBYnmk"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"學(xué)習(xí)方式","id":""}],"text":"","id":"FG6OdgEWAosIcexYLUecc900nLd"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"費曼學(xué)習(xí)法","id":""}],"text":"","id":"FOYAdYUk6oEk4gx7u0ycaoPsnEy"},{"type":"paragraph","children":[{"type":"text","text":"在學(xué)完一個東西之后去給別人講明白,注意是講給別人聽,當(dāng)你寫成文章發(fā)表在網(wǎng)上的時候,你自然會去用更通俗的語言,更清晰的邏輯去講述這個事物背后的邏輯。這個過程是對自己學(xué)習(xí)的一個檢驗,也是加深映像整理思路的重要過程。","id":""}],"text":"","id":"EyYWdScu2o0ca2xIRdgcR5k2nnd"},{"type":"paragraph","children":[{"type":"text","text":"那么如果你是去記筆記的話,很有可能你會傾向于去照抄,或是不完全照抄,以“提綱”或是“知識點”的形式抄在本子上。說句實話,照抄的筆記真的沒用,因為現(xiàn)在搜索引擎的能力已經(jīng)可以讓你把大多數(shù)東西快速找到,你為什么還要照抄到筆記本上呢?","id":""}],"text":"","id":"HSu4dusiqoIcCcxCOhTccQL5n3e"},{"type":"paragraph","children":[{"type":"text","text":"從功利的角度考慮,技術(shù)文章的寫作,別人可以直接訪問,也可以逐漸累積你的影響力,一個好的個人技術(shù)博客,會給你的簡歷加分很多,而一個厚厚的筆記本,沒有人會管你記了什么。","id":""}],"text":"","id":"SOUSdQWIoo6OMYxIldZcuIU9nKh"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"做好筆記","id":""}],"text":"","id":"SUoEdyCk0oOa2Ux2lGlcxcJKnXd"},{"type":"paragraph","children":[{"type":"text","text":"大多數(shù)人沒有過目不忘的神技,學(xué)了也不一定馬上掌握,需要過后花時間慢慢領(lǐng)悟,而且還有忘掉的風(fēng)險,所以對于重要的知識點都要做好筆記。編程的過程中總會遇到各種各樣的問題,比如編程環(huán)境的配置,常用的快捷鍵,編程過程中的錯誤、異常,軟件更新問題等等。面對這些問題都是如何解決的,一定要記錄下來,一是增加自己解決問題的經(jīng)驗,而是以防下次出現(xiàn)。","id":""}],"text":"","id":"OGGwdgoU0oca0gxamqlcZ7HVnCf"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"多看官方文檔","id":""}],"text":"","id":"HqyKdYYu8oU6QCxKmzicQi2qnxb"},{"type":"paragraph","children":[{"type":"text","text":"外文資料互聯(lián)網(wǎng)是一個更新迭代很快的行業(yè),所有編程語言都會不斷的更新新功能和修復(fù)舊Bug,網(wǎng)上查的資料很有可能是舊的解決方案,現(xiàn)在已經(jīng)不適用了。所以最好最快的方法就是查看官方文檔。","id":""}],"text":"","id":"FGkAdKUGioyu6OxiQ7pcForVnXc"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"進入行業(yè)圈子","id":""}],"text":"","id":"OEwIdSQ4EoK0U8xHbsJcVXchnCw"},{"type":"paragraph","children":[{"type":"text","text":"只有進入行業(yè)圈子與其他人交流,你才了解最新的行業(yè)動態(tài),才知道自己需要更新哪些技能。","id":""}],"text":"","id":"XqkadOImEoakm4xCGrscdtHOnrg"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"動手做項目","id":""}],"text":"","id":"SMIQdeS4Qo60gKxSE1qcpjf9n1b"},{"type":"paragraph","children":[{"type":"text","text":"學(xué)習(xí)編程的最終目的就是用所學(xué)的做出具有一定功能的項目,而做項目又是最好的學(xué)習(xí)和鞏固知識的方式。如果前期能力不足就先做一些簡單的功能模塊,一步一步慢慢來,不要一開始就要實現(xiàn)各種酷炫炸天功能,遇到不會的就在網(wǎng)上查, 現(xiàn)在互聯(lián)網(wǎng)這么發(fā)達,獲取資源也及其方便。而且開發(fā)前也最好在網(wǎng)上查一下有沒有已經(jīng)成型的框架或模板,什么都自己做一是很耗費時間,二是自己技術(shù)能力不足還可能留下不少坑。","id":""}],"text":"","id":"E8SSdsQksoOykkxq8qhc2D9UnPh"},{"type":"heading","attrs":{"level":1},"children":[{"type":"text","text":"學(xué)習(xí)Python","id":""}],"text":"","id":"Noeodu46Eoyg4Oxcz2Lcvsh6nWf"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"text":"","id":"Ucwad8wU0omK2YxUmNnc76Pjneb"},{"type":"paragraph","children":[{"type":"text","text":"第一步:訪問Python官網(wǎng),獲取最新安裝程序。","id":""}],"text":"","id":"CIWwdiUucoGM4Axe1XscufX4npb"},{"type":"image","attrs":{"height":253,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"ZAUEdiiUoockeYx4FwFcKNmVnsb"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第二步:運行下載的安裝程序,注意勾選“Add Python3.7 to PATH”,然后選擇個性化安裝,即“Customize installation”。","id":""}],"text":"","id":"DikMdkUMeoIIwOxEFNjcgKC8nfb"},{"type":"image","attrs":{"height":308,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"VeISdQwCcogI8yxKqjrcxkXBnXf"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第三步:確?!皃ip”被勾選上,之后安裝各種庫需要用到pip。","id":""}],"text":"","id":"JakkdcOG8omkoCxUt62cPMoinKb"},{"type":"image","attrs":{"height":308,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"HQUGdykoMoSUmGxymgjcOwounzg"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第四步:高級選項,需要的可以修改安裝目錄,通常沒有需要修改的,直接點“Install”。","id":""}],"text":"","id":"U8gUdO22So4GWMxk5AAcYxhgnwd"},{"type":"image","attrs":{"height":308,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"IGQwdQag4oi06uxWuyacQYQAnwe"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第五步:等待程序自動安裝完成。","id":""}],"text":"","id":"ZqiadCqiEoWewYx0AC8cBcnTneh"},{"type":"image","attrs":{"height":308,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"EmCWd0sMaoowOIxuA2lctZeXn8e"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第六步:出現(xiàn)如下界面,說明安裝已完成。","id":""}],"text":"","id":"CSiudKqaqomAkcx2B6tcVnpGnPd"},{"type":"image","attrs":{"height":308,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"UiCYdig0KoeIUWx049tcMB6bn6f"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""},{"type":"text","text":"第七步:驗證方法,Windows+R 鍵打開“運行”窗口,輸入cmd運行,進入命令提示窗口,再輸入python,進入Python的命令模式,輸入 print("Hello"),結(jié)果輸出了 Hello,如下圖所示,確定開發(fā)環(huán)境已安裝完成。","id":""}],"text":"","id":"Lmoede4cuoEwQKxmabGcMLaXnXf"},{"type":"image","attrs":{"height":261,"note":[{"type":"text","text":"安裝編程環(huán)境","id":""}],"url":"},"text":"","id":"MsIgduUaEosaG6xSunHcnIm8nvf"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"運行環(huán)境","id":""}],"text":"","id":"Lqiwde2SYoKEoOxquyEcgRRLnLd"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"Hello World!","id":""}],"text":"","id":"IIgSdccwkoeaG8xmadlcUw6Bnbh"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"命令行","id":""}],"text":"","id":"JAaKdcMMUoSaKcxW4c1ccXeGnPb"},{"type":"paragraph","children":[{"type":"text","text":"在Linux命令行輸入:$python","id":""}],"text":"","id":"Ac0Udg8sKoo64WxKUEpcVHc9ngc"},{"type":"paragraph","children":[{"type":"text","text":"將直接進入python。然后在命令行提示符u003eu003eu003e后面輸入:u003eu003eu003eprint('Hello World!')","id":""}],"text":"","id":"C6OwdcCKao0kG8x4u6bchmSwn9e"},{"type":"paragraph","children":[{"type":"text","text":"可以看到,隨后在屏幕上輸出:","id":""}],"text":"","id":"HMyIdGao0omCcMxyu1Kc9DyFnQJ"},{"type":"paragraph","children":[{"type":"text","text":"Hello World!","id":""}],"text":"","id":"HCWydoCIKo02yMxOy7GcZ1MBnkc"},{"type":"paragraph","children":[{"type":"text","text":"print是一個常用函數(shù),其功能就是輸出括號中得字符串。","id":""}],"text":"","id":"K4gYdSoiuo00icxAHmpc1eimnGc"},{"type":"paragraph","children":[{"type":"text","text":"(在Python 2.x中,print還可以是一個關(guān)鍵字,可寫成print 'Hello World!',但這在3.x中行不通 )","id":""}],"text":"","id":"BQACduGE6oCgSOx2fvYcEcbPn4f"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"小程序","id":""}],"text":"","id":"NGqsdeUKwoewYQx3zgdcf4Q4nsb"},{"type":"paragraph","children":[{"type":"text","text":"另一個使用Python的方法,是寫一個Python程序。用文本編輯器寫一個.py結(jié)尾的文件,比如說hello.py","id":""}],"text":"","id":"LkWEdeSkSosWMexWc7PcjpdvnJg"},{"type":"paragraph","children":[{"type":"text","text":"在hello.py中寫入如下,并保存:print('Hello World!')","id":""}],"text":"","id":"JgOsdAKe4ogmyExYHgLcTmQunyg"},{"type":"paragraph","children":[{"type":"text","text":"退出文本編輯器,然后在命令行輸入:$python hello.py","id":""}],"text":"","id":"So08dE2imoYYQCxQ2QFcO82cnJL"},{"type":"paragraph","children":[{"type":"text","text":"來運行hello.py??梢钥吹絇ython隨后輸出Hello World!","id":""}],"text":"","id":"AIKCdsmeYoCwwUx0su3cHkHqnvb"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"腳本","id":""}],"text":"","id":"ZsEMdwYWcoQOsQxSSv6cYylLn5e"},{"type":"paragraph","children":[{"type":"text","text":"我們還可以把Python程序hello.py改成一個可執(zhí)行的腳本,直接執(zhí)行:#!/usr/bin/env python","id":""}],"text":"","id":"LqUgd8CeQoCIeux81qFc7h69nHE"},{"type":"paragraph","children":[{"type":"text","text":"print('Hello World!')","id":""}],"text":"","id":"ASc8d6YmkoASeOxcNArcGC3Anbc"},{"type":"paragraph","children":[{"type":"text","text":"需要修改上面程序的權(quán)限為可執(zhí)行:chmod 755 hello.py","id":""}],"text":"","id":"SY4Sd2aEMoy8E2x8moScAd5Gnbc"},{"type":"paragraph","children":[{"type":"text","text":"然后再命令行中,輸入./hello.py","id":""}],"text":"","id":"KcuSdKiEGomYGmxcxZ9cfAzwn9d"},{"type":"paragraph","children":[{"type":"text","text":"就可以直接運行了。","id":""}],"text":"","id":"WoeudWqOAosyosx8vdLcVyTQnre"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"基本數(shù)據(jù)類型","id":""}],"text":"","id":"PCwKdMoS2oKi4gxFAqZctL2XnJp"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"變量不聲明","id":""}],"text":"","id":"HsuQdOC6kosCkax4ML4cAJ8Dnje"},{"type":"paragraph","children":[{"type":"text","text":"Python的變量不需要聲明,你可以直接輸入:u003eu003eu003ea = 10","id":""}],"text":"","id":"SoA0dk2IKogMgOxewwVc4LkKnMe"},{"type":"paragraph","children":[{"type":"text","text":"那么你的內(nèi)存里就有了一個變量a, 它的值是10,它的類型是integer (整數(shù))。 在此之前你不需要做什么特別的聲明,而數(shù)據(jù)類型是Python自動決定的。","id":""}],"text":"","id":"KuuidCs4SooqGex6ZITcthxHnHc"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003eprint(a)","id":""}],"text":"","id":"VUaadIGOqoYYS4xwFOLcR1CVnEh"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003eprint(type(a))","id":""}],"text":"","id":"K2uYdIgSwoIaKexCWFvc3GZnnIe"},{"type":"paragraph","children":[{"type":"text","text":"那么會有如下輸出:","id":""}],"text":"","id":"VYCKdqwy4oWG6Ux2xQjcXvipnzV"},{"type":"paragraph","children":[{"type":"text","text":"10","id":""}],"text":"","id":"FukWdMmaAoceg4xCaJ5c8ktfnuf"},{"type":"paragraph","children":[{"type":"text","text":"u003cclass 'int'u003e","id":""}],"text":"","id":"Mo4IdywqgoqKI8xSBu7cFmLyndb"},{"type":"paragraph","children":[{"type":"text","text":"這里,我們學(xué)到一個內(nèi)置函數(shù)type(),用以查詢變量的類型。","id":""}],"text":"","id":"C8yKdI8amoWwssxaEpQcGuK7nTf"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"回收變量名","id":""}],"text":"","id":"LmgCdYeiuoIWgWxOon3c3P1Hncd"},{"type":"paragraph","children":[{"type":"text","text":"如果你想讓a存儲不同的數(shù)據(jù),你不需要刪除原有變量就可以直接賦值。","id":""}],"text":"","id":"J0C0dc8UWo4CESx4m4jceRTAn4e"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003ea = 1.3","id":""}],"text":"","id":"Tme6dEUG8ogECYxMrZOcjBzCnfg"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003eprint(a,type(a))","id":""}],"text":"","id":"Xo8mdWieio2ayqxYvCqcNNnKnac"},{"type":"paragraph","children":[{"type":"text","text":"會有如下輸出","id":""}],"text":"","id":"HEQgdWU6so2EW0x2pYGc8Up6nLf"},{"type":"paragraph","children":[{"type":"text","text":"1.3 u003cclass 'float'u003e","id":""}],"text":"","id":"Xe0Qd0YkEoWcUixQxzNcsc7BnQc"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"序列","id":""}],"text":"","id":"K4sIdyYiaooeSKx0ENocBIlknzb"},{"type":"paragraph","children":[{"type":"text","text":"sequence(序列)是一組有順序的元素的集合,(嚴(yán)格的說,是對象的集合,但鑒于我們還沒有引入“對象”概念,暫時說元素)序列可以包含一個或多個元素,也可以沒有任何元素。","id":""}],"text":"","id":"NKG2d8UMAokU4mxs9Snc667DnQf"},{"type":"paragraph","children":[{"type":"text","text":"我們之前所說的基本數(shù)據(jù)類型,都可以作為序列的元素。元素還可以是另一個序列,以及我們以后要介紹的其他對象。","id":""}],"text":"","id":"SIe2duU4WoQEuMxUTXrcAmmKn2f"},{"type":"paragraph","children":[{"type":"text","text":"序列有兩種:tuple(定值表; 也有翻譯為元組) 和 list (表)","id":""}],"text":"","id":"RmMwdgGU4oqywAxIZbQcqQHjnNe"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003es1 = (2, 1.3, 'love', 5.6, 9, 12, False) # s1是一個tuple","id":""}],"text":"","id":"WOaCdYes4o2k8yxWsrqckvlxnDd"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003es2 = [True, 5, 'smile'] # s2是一個list","id":""}],"text":"","id":"De8ydgYi2o0ciixAjmgcINQnnzd"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003eprint(s1,type(s1))","id":""}],"text":"","id":"IMqQdWcKEogyGuxORI4cXDm9n5N"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003eprint(s2,type(s2))","id":""}],"text":"","id":"EY6idcQaooqaaGx0o8HcNZcmnHc"},{"type":"paragraph","children":[{"type":"text","text":"tuple和list的主要區(qū)別在于,一旦建立,tuple的各個元素不可再變更,而list的各個元素可以再變更。","id":""}],"text":"","id":"A8A0d4wsEoQM6gxy8wfczcPunJg"},{"type":"paragraph","children":[{"type":"text","text":"一個序列作為另一個序列的元素","id":""}],"text":"","id":"BiqUdsI6Koks4gxyig4ckRhgnGd"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003es3 = [1,[3,4,5]]","id":""}],"text":"","id":"YoyEdOKywoYs8Ax4E1ic6uIan3c"},{"type":"paragraph","children":[{"type":"text","text":"空序列","id":""}],"text":"","id":"OWykdUkeWo4UOQxWiu3cKYkDnAd"},{"type":"paragraph","children":[{"type":"text","text":"u003eu003eu003es4 = []","id":""}],"text":"","id":"VWEIdSqWooyg40xMpeYcDMo9nbd"},{"type":"heading","attrs":{"level":1},"children":[{"type":"text","text":"自學(xué)","id":""}],"text":"","id":"KW4Odiy8Eo4QyMxmAKFciGS8n4f"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"網(wǎng)站","id":""}],"text":"","id":"G4AadueAIoa4o8xs9gwcSrAxnme"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"菜鳥網(wǎng)站","id":""}],"text":"","id":"KqWid0A6UoAOIAxIlTWcxC9Nnsd"},{"type":"paragraph","children":[{"type":"text","text":"這個python教程很適合小白學(xué)習(xí),沒有高深的原理,照著教程學(xué)就完事了。","id":""}],"text":"","id":"UiaCdQGKyo6Wg2xwxHoc2Dxmnxt"},{"type":"paragraph","children":[{"type":"text","text":"菜鳥教程是一個提供免費編程學(xué)習(xí)的網(wǎng)站,里面不但能學(xué)到編程知識,還能運用在線編程工具,使你在學(xué)習(xí)的過程中得到發(fā)揮,實踐得真理,邊學(xué)邊做中讓基礎(chǔ)打得更穩(wěn),讓自己的知識更加穩(wěn)固。在自己有不明白不理解的地方可以在網(wǎng)站的用戶筆記中尋找大佬們的筆記,把自己所學(xué)和技術(shù)大佬的經(jīng)驗所融合,使自己更好地提升自己的能力。","id":""}],"text":"","id":"ZEgwdWWSsoq682x8f5wchxAynZe"},{"type":"paragraph","children":[{"type":"text","text":"菜鳥教程內(nèi)容豐富,例如前端熱門語言HTML5、CSS3、JavaScript、Vue等它該有的都有,都會從最基礎(chǔ)的開始教,讓剛學(xué)編程的小白由淺及深,一看就懂。每個知識點都有實例可以動手,直接在頁面內(nèi)做你想要的效果真的非常棒。菜鳥的排版簡潔清晰有序,內(nèi)容一針見血,讓你一看就能明白其知識點的含義。","id":""}],"text":"","id":"WiU8de84coa6cQxcTG1chmmunkh"},{"type":"paragraph","children":[{"type":"text","text":"菜鳥教程不僅前端教程語言豐富,后端的Java、PHP、Python更是一應(yīng)俱全,當(dāng)然數(shù)據(jù)庫、移動端、XML、","id":""},{"type":"text","text":"ASP.NET","id":""},{"type":"text","text":"、Web Service、開發(fā)工具和網(wǎng)站建設(shè)也是應(yīng)有盡有,菜鳥教程有學(xué)到的知識如此之多,奮斗吧少年。","id":""}],"text":"","id":"RggwdQ6uqoSiQWxI1ENck2ktnYe"},{"type":"image","attrs":{"height":383,"note":[{"type":"text","text":"菜鳥網(wǎng)站","id":""}],"url":"},"text":"","id":"NI2SdAC2QosicOxQ9YxcHeSknnh"},{"type":"paragraph","children":[{"type":"text","text":" ","id":""}],"text":"","id":"DsoCdsMcuoAoi0x8BarcCb3Sn3f"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"廖雪峰的官方網(wǎng)站","id":""}],"text":"","id":"CwsqdmSY6os00wxdcNSctzmwnHH"},{"type":"paragraph","children":[{"type":"text","text":"廖雪峰的官方網(wǎng)站比較推薦新手程序員學(xué)習(xí)前端,這個網(wǎng)站的教學(xué)視頻的講解相對來說會比較生動,沒有其他教程那么死板,看起來也不至于那么犯困,也更便于新手去理解??偟膩碚f,廖雪峰的官方網(wǎng)站作為一款啟蒙類的前端學(xué)習(xí)網(wǎng)站還是相當(dāng)不錯的。","id":""}],"text":"","id":"SimcdEA4mo2QwExkXoAcSn0RnEh"},{"type":"image","attrs":{"height":750,"note":[{"type":"text","text":"廖雪峰的官方網(wǎng)站","id":""}],"url":"},"text":"","id":"NWWwdMy2AoWIwgxI10pcF9jJnhh"},{"type":"heading","attrs":{"level":3},"children":[{"type":"text","text":"Python官方教程","id":""}],"text":"","id":"M0cGdIGsSoAYA8xaOKYcPxMInuf"},{"type":"paragraph","children":[{"type":"text","text":"這是Python官方出品的教程,可搭配Python標(biāo)準(zhǔn)庫一起學(xué)。","id":""}],"text":"","id":"QCUKde0YCoe4aixMp6mc34NynAf"},{"type":"image","attrs":{"height":810,"note":[{"type":"text","text":"Python官方教程","id":""}],"url":"},"text":"","id":"NQI2dc86io4EgwxgVEXcl1svnae"},{"type":"heading","attrs":{"level":2},"children":[{"type":"text","text":"書籍","id":""}],"text":"","id":"ZYEAdMaCaoY8mSxGJFecEcpannb"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"《Python編程從入門到實踐(第2版)》","id":""}],"text":"","id":"OKe4diK4goU4Swxg9Edc2CcjnQZ"},{"type":"paragraph","children":[{"type":"text","text":"作者:埃里克·馬瑟斯 (EricMatthes)袁國忠 譯","id":""}],"text":"","id":"PKQcdAAcGoUoC0xOqEocFhTCnlh"},{"type":"paragraph","children":[{"type":"text","text":"ISBN:","id":""}],"text":"","id":"DyUWd4aUio4a60xu6ogcPj1Bn2d"},{"type":"paragraph","children":[{"type":"text","text":"出版:人民郵電出版社","id":""}],"text":"","id":"Rs42dYymGoSIuUxWU7RctjUznMe"},{"type":"paragraph","children":[{"type":"text","text":"本書是針對所有層次Python讀者而作的Python門書。全書分兩部分:部分介紹用Python編程所必須了解的基本概念,包括強大的Python庫和工具,以及列表、字典、if語句、類、文件與異常、代碼測試等內(nèi)容;第二部分將理論付諸實踐,講解如何發(fā)三個項目,包括簡單的2D游戲、利用數(shù)據(jù)生成交互式的信息圖以及創(chuàng)建和定制簡單的Web應(yīng)用,并幫助讀者解決常見編程問題和困惑。","id":""}],"text":"","id":"HoQodykKqo8COCxqyqwccoimnKh"},{"type":"image","attrs":{"height":619,"note":[{"type":"text","text":"書籍","id":""}],"url":"},"text":"","id":"ZU6qdUUScoCUA4x46jtchHQIndf"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"《像計算機科學(xué)家一樣學(xué)Python》","id":""}],"text":"","id":"E28edua0koSygsxnyHBcIkeznGk"},{"type":"paragraph","children":[{"type":"text","text":"ISBN:","id":""}],"text":"","id":"N44Udusiso2siQx61owcIo13n6d"},{"type":"paragraph","children":[{"type":"text","text":"作者:","id":""},{"type":"text","text":"艾倫","id":""},{"type":"text","text":" B. ","id":""},{"type":"text","text":"唐尼","id":""},{"type":"text","text":"(","id":""},{"type":"text","text":"Allen","id":""},{"type":"text","text":" B. ","id":""},{"type":"text","text":"Downey","id":""},{"type":"text","text":")","id":""}],"text":"","id":"RkEudeuIsoy2CmxW6NxcCRV1nfh"},{"type":"paragraph","children":[{"type":"text","text":"出版:人民郵電出版社","id":""}],"text":"","id":"WYKKdki4WoSykmx6OJVcqWOunDg"},{"type":"paragraph","children":[{"type":"text","text":"本書以培養(yǎng)讀者以計算機科學(xué)家一樣的思維方式來理解Python語言編程。貫穿全書的主體是如何思考、設(shè)計、發(fā)的方法,而具體的編程語言,只是提供了一個具體場景方便介紹的媒介。全書共21章,詳細介紹Python語言編程的方方面面。本書從基本的編程概念始講起,包括語言的語法和語義,而且每個編程概念都有清晰的定義,引領(lǐng)讀者循序漸地學(xué)習(xí)變量、表達式、語句、函數(shù)和數(shù)據(jù)結(jié)構(gòu)。書中還探討了如何處理文件和數(shù)據(jù)庫,如何理解對象、方法和面向?qū)ο缶幊?,如何使用調(diào)試技巧來修正語法錯誤、運行時錯誤和語義錯誤。","id":""}],"text":"","id":"BK6ydyYuaouyusx4pJfcnzCvnPh"},{"type":"image","attrs":{"height":701,"note":[{"type":"text","text":"書籍","id":""}],"url":"},"text":"","id":"Gukwd8S6oo0uMKxNGdKcgvECnCz"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"《計算機科學(xué)叢書:Java編程思想》","id":""}],"text":"","id":"Qyk4dmCKMouoUwxDv4BcZSonnv6"},{"type":"paragraph","children":[{"type":"text","text":"ISBN:","id":""}],"text":"","id":"LOyCdEOUeo0MSixsRQOcsCACn1A"},{"type":"paragraph","children":[{"type":"text","text":"作者:[美] Bruce Eckel","id":""}],"text":"","id":"NY06d6MISoicmMxkpXAcDYjwnxe"},{"type":"paragraph","children":[{"type":"text","text":"出版:機械工業(yè)出版社","id":""}],"text":"","id":"SASYdyGwMoMiMqx6Cn3c7fPfnFf"},{"type":"paragraph","children":[{"type":"text","text":"本書的作者擁有多年教學(xué)經(jīng)驗,對C、C++以及Java語言都有獨到、深入的見解,以通俗易懂及小而直接的示例解釋了一個個晦澀抽象的概念。本書共22章,包括操作符、控制執(zhí)行流程、訪問權(quán)限控制、復(fù)用類、多態(tài)、接口、通過異常處理錯誤、字符串、泛型、數(shù)組、容器深入研究、JavaI/O系統(tǒng)、枚舉類型、并發(fā)以及圖形化用戶界面等內(nèi)容。這些豐富的內(nèi)容,包含了Java語言基礎(chǔ)語法以及高級特性,適合各個層次的Java程序員閱讀,同時也是高等院校講授面向?qū)ο蟪绦蛟O(shè)計語言以及Java語言的好教材和參考書。","id":""}],"text":"","id":"DmCwdc4UWo8kIyxkrbKcGAPFn3S"},{"type":"image","attrs":{"height":603,"note":[{"type":"text","text":"書籍","id":""}],"url":"},"text":"","id":"NuusdkO0KoEuqcxkhDUcaHIinNd"},{"type":"paragraph","children":[{"type":"text","marks":[{"type":"strong"}],"text":"《瘋狂Java講義》","id":""}],"text":"","id":"Za0CdW40komg2KxiOCtcsN4pnNf"},{"type":"paragraph","children":[{"type":"text","text":"ISBN:","id":""}],"text":"","id":"XAcQd6qs0oWqqGxUFeAcY2danZe"},{"type":"paragraph","children":[{"type":"text","text":"作者:李剛","id":""}],"text":"","id":"HImOdIWASoK8YGxkvUZcJhCHnrh"},{"type":"paragraph","children":[{"type":"text","text":"出版:電子工業(yè)出版社","id":""}],"text":"","id":"P0s8dmIUioYcsIxE13WcCFIgnJc"},{"type":"paragraph","children":[{"type":"text","text":"《瘋狂Java講義(第4版)》深入介紹了Java編程的相關(guān)方面,《瘋狂Java講義(第4版)》內(nèi)容覆蓋了Java的基本語法結(jié)構(gòu)、Java的面向?qū)ο筇卣鳌ava集合框架體系、Java泛型、異常處理、Java GUI編程、JDBC數(shù)據(jù)庫編程、Java注釋、Java的IO流體系、Java多線程編程、Java網(wǎng)絡(luò)通信編程和Java反射機制。覆蓋了java.lang、java.util、java.text、java.io和java.nio、java.sql、java.awt、javax.swing包下絕大部分類和接口。本書重點介紹了Java 9的模塊化系統(tǒng),還詳細介紹了Java 9的jshell工具、多版本JAR包、匿名內(nèi)部類的菱形語法、增強的try語句、私有接口方法,以及Java 9新增的各種API功能。","id":""}],"text":"","id":"HqYKdqMICoW6Iexk7uecKI1ZnNb"},{"type":"image","attrs":{"height":685,"note":[{"type":"text","text":"書籍","id":""}],"url":"},"text":"","id":"Nosid8Yukoa0aOxA54IcivKanue"},{"type":"paragraph","children":[{"type":"text","text":"","id":""}],"text":"","id":"ESKMd2eyCoKUQmxCgyCcBWYbn6f"}]%3C%2Fhowto_content%3E
請高手指點迷津,我手表上的英文代表的是什么意思?
- 上一篇:帝舵游俠會降到多少
- 下一篇:手表日歷前面的英文縮寫是什么意思