python基礎筆記

來源:互聯網
上載者:User

標籤:python3.x   log   hello   python2   hid   inpu   htm   變數   one   

1、python是什嗎?

Python是一種電腦程式設計語言。你可能已經聽說過很多種流行的程式設計語言,比如非常難學的C語言,非常流行的Java語言

2、python能用來做什麼

日常任務,比如自動備份;可以用來做網站;雲端運算最火的語言;營運人員必備語言等等等

3、python的版本

python目前有兩個版本,一個是python2.x  一個是python3.x

關於python兩個版本區別此處描寫的更加詳細

http://www.cnblogs.com/codingmylife/archive/2010/06/06/1752807.html

4、第一個python程式
1 print(‘hello world!‘)
5、python的輸入和輸出

用print()在括弧中加上字串,就可以向螢幕上輸出指定的文字。比如輸出‘hello, world‘

Python提供了一個input(),可以讓使用者輸入字串,並存放到一個變數裡。比如輸入使用者的名字:

>>> name=input(‘please input your name:‘)please input your name:ly>>> name‘ly‘
name

 

python基礎筆記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.