with語句
withopen('/etc/passwd', 'r') as f:
foreachLine in f:
#...do stuff with eachLine or f...
斷言語句
下面有一些演示assert用法的語句:
assert 1 == 1
assert 2 + 2 == 2 * 2
assert len(['my list', 12]) < 10
assert range(3) == [0, 1, 2]
with語句
withopen('/etc/passwd', 'r') as f:
foreachLine in f:
#...do stuff with eachLine or f...
斷言語句
下面有一些演示assert用法的語句:
assert 1 == 1
assert 2 + 2 == 2 * 2
assert len(['my list', 12]) < 10
assert range(3) == [0, 1, 2]
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫