iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 4
1
AI & Data

大數據與AI研習實作與心得 系列 第 4

Python - 總覽&第一支程式&基本知識

總覽

  1. Python的數值運算
  2. 字串操作
  3. 資料型態:List,Tuple,Set,Dictonary
  4. 是否在群裡
  5. 串列建構
  6. 模組匯入

第一支程式

用Visual studio code
新增一MyHello.py

print ("Hello Python!")

按下Shit-Alt-Enter鍵


註解方式
單行
#

多行
'''
中間放註解
'''


String字串
可以用單引、雙引、三引號

name='小明'
is='是'
answer='''
北京來的小明
他回不來了


'''


上一篇
Python - 所需環境安裝(2)
下一篇
Python - String字串
系列文
大數據與AI研習實作與心得 30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言