python基礎①
改變工作環境
import os
os.chdir("I:\pythonwork")
os.getcwd()
`I:\pythonwork`
for迴圈
cities = ["beijing","shanghai","guangzhou"]
for city in cities:
print(city)
if語句
animals = ["cat","mouse","rabbit"]
if "cat" in animals:
print("yes")
else:
print("no")
相關文章
- Python基礎篇-Python基礎01Python
- Python基礎筆記01-Python基礎Python筆記
- python基礎中的基礎Python
- Python 基礎 (-)Python
- Python基礎Python
- python 基礎Python
- Python基礎:語法基礎(3)Python
- Python基礎面試題30問!Python基礎教程Python面試題
- Python基礎—字串Python字串
- python基礎12Python
- Python_基礎Python
- Python基礎一Python
- Python基礎篇Python
- 03 - Python 基礎Python
- python基礎題Python
- python基礎3Python
- Python列表基礎Python
- 【Python基礎】字典Python
- python基礎概念Python
- python基礎操作Python
- python基礎(五)Python
- python基礎(一)Python
- Python基礎教程Python
- Python基礎(下篇)Python
- Python基礎之四:Python3 基礎資料型別Python資料型別
- Python基礎:編碼Python
- python基礎學習Python
- Python 基礎概覽Python
- Python基礎:dict & setPython
- python多程式基礎Python
- Python基礎語法Python
- python基礎內容Python
- Python:基礎&爬蟲Python爬蟲
- Python基礎教程.18214570Python
- python基礎知識Python
- Python基礎03 序列Python
- Python 基礎 2 - 列表Python
- python 基礎 迴圈Python
- 【Python】基礎總結Python