a為非空字符串,Python解釋為true,a or 'world'返回a.
b為none,Python解釋為false,b Or ’world'返回'world'。
b為none,Python解釋為false,b Or ’world'返回'world'。
2014-11-13
一樓 那個... 第二個參數表示你第一個參數的進制 所有那個表示你傳入的123是8進制的 看函數名就知道是轉換成int型 可以自己核下輸出結果啊親
2014-11-12
int('123',8)這個函數表示的是123是八進制的數轉換為十進制的數,還是123是十進制的數轉換為八進制?
2014-11-11
s = 'Python was started in 1989 by "Guido".'
print s
t = "Python is free and easy to learn."
print t
print s
t = "Python is free and easy to learn."
print t
2014-11-07