Python_day2

Highlight

Visual Studio Code, the print() and input() function
Visual Studio Code downloading failed.
But I practiced some simple coding.

print('I am a hero')
I am a hero
print('I love dogs','I love cats')
I love dogs I love cats
print(8487-47566)
-39079
name=input()
JoJo
 name
'JoJo'
 print(name)
JoJo

Finally I installed the Visual Studio Code and made a .py file. WHAT A TOUGH WORK!

C:\Users\Zoie0>D:

D:\>cd:D:\XXX\python\coding
The filename, directory name, or volume label syntax is incorrect.

D:\>cd D:\XXX\python\coding

D:\ChenZY\python\coding>dir
 Volume in drive D is Data
 Volume Serial Number is B4E6-8C04

 Directory of D:\XXX\python\coding

2022/04/18  16:40    <DIR>          .
2022/04/18  16:40    <DIR>          ..
2022/04/18  16:40                20 hello.py
               1 File(s)             20 bytes
               2 Dir(s)  1,714,315,542,528 bytes free

D:\XXX\python\coding>python hello.py
hello world

I am very unfamiliar with the Visual Studio Code. I have to use it everyday.
NOTE: 1.The text after a # is simply ignored as a human-readable comment and is not considered part of the statement’s syntax.
2.Using 4 spaces for indentation.( But how to set the tab to automatically convert to 4 spaces in my Visual Studio Code?)

Some reviews:

  1. The Python interpreter is a program that runs the Python programs you write.
  2. Source code is the statements you write for your program—it consists of text in
    text files that normally end with a .py extension.
  3. Byte code is the lower-level form of your program after Python compiles it. Python automatically stores byte code in files with a .pyc extension.
  4. The PVM is the Python Virtual Machine—the runtime engine of Python that interprets your compiled byte code.
  5. Psyco, Shedskin, and frozen binaries are all variations on the execution model.
  6. CPython is the standard implementation of the language. Jython and IronPython implement Python programs for use in Java and .NET environments, respectively;they are alternative compilers for Python.

X: - Jump to a certain disk;

dir - all files in this directory;

cd XX - jump to the XX directory;

more XX——XX details;

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末租冠,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 221,198評論 6 514
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件休涤,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機循狰,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,334評論 3 398
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來券勺,“玉大人绪钥,你說我怎么就攤上這事」亓叮” “怎么了程腹?”我有些...
    開封第一講書人閱讀 167,643評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長儒拂。 經(jīng)常有香客問我寸潦,道長,這世上最難降的妖魔是什么社痛? 我笑而不...
    開封第一講書人閱讀 59,495評論 1 296
  • 正文 為了忘掉前任见转,我火速辦了婚禮,結(jié)果婚禮上蒜哀,老公的妹妹穿的比我還像新娘斩箫。我一直安慰自己,他們只是感情好凡怎,可當我...
    茶點故事閱讀 68,502評論 6 397
  • 文/花漫 我一把揭開白布校焦。 她就那樣靜靜地躺著,像睡著了一般统倒。 火紅的嫁衣襯著肌膚如雪寨典。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,156評論 1 308
  • 那天房匆,我揣著相機與錄音耸成,去河邊找鬼报亩。 笑死,一個胖子當著我的面吹牛井氢,可吹牛的內(nèi)容都是我干的弦追。 我是一名探鬼主播,決...
    沈念sama閱讀 40,743評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼花竞,長吁一口氣:“原來是場噩夢啊……” “哼劲件!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起约急,我...
    開封第一講書人閱讀 39,659評論 0 276
  • 序言:老撾萬榮一對情侶失蹤零远,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后厌蔽,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體牵辣,經(jīng)...
    沈念sama閱讀 46,200評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,282評論 3 340
  • 正文 我和宋清朗相戀三年奴饮,在試婚紗的時候發(fā)現(xiàn)自己被綠了纬向。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,424評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡戴卜,死狀恐怖逾条,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情投剥,我是刑警寧澤膳帕,帶...
    沈念sama閱讀 36,107評論 5 349
  • 正文 年R本政府宣布,位于F島的核電站薇缅,受9級特大地震影響危彩,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜泳桦,卻給世界環(huán)境...
    茶點故事閱讀 41,789評論 3 333
  • 文/蒙蒙 一汤徽、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧灸撰,春花似錦谒府、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,264評論 0 23
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至债蓝,卻和暖如春壳鹤,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背饰迹。 一陣腳步聲響...
    開封第一講書人閱讀 33,390評論 1 271
  • 我被黑心中介騙來泰國打工芳誓, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留余舶,地道東北人。 一個月前我還...
    沈念sama閱讀 48,798評論 3 376
  • 正文 我出身青樓锹淌,卻偏偏與公主長得像匿值,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子赂摆,可洞房花燭夜當晚...
    茶點故事閱讀 45,435評論 2 359

推薦閱讀更多精彩內(nèi)容