Python 中的清單 (List)
建立清單 x = [“abc”, 22, None] print (x[2]) print (x[-1]) 上述兩個print 既result 都會預計係 None, 後者方法指list 出由尾數既第1個 (p.S 如果要show “abc”, 要用”print (x[0])”) 加入新元素到清單 x = [“abc”, 22, None] print (x) x.append(“Love”) print(x) 移除第X個清單中的元素 x = [“abc”, 22, None] print (x) x.pop(1) print(x) 所以 “22” 會從清單中被移除 將清單中的元素順序及反序例出 x = [3, 1 , 9, 222,
Python 顯示字串第X至第Y個字?
如何用Python 顯示字串第X至第Y個字? Example string = “1234567890” print (string[1:5]) “print (string[x:y])”就是顯示第X+1到第Y個字, 所以如果想只顯示5及6 就應該用 string = “1234567890” print (string[4:6]) 如果由一開始到第Y個就應該用 string = “1234567890” print (string[:5]) 如果由第X+1個到最尾就應該用 string = “1234567890” print (string[4:])
Python 合併字串
如何用 Python 合併字串? Example x = “H” y = “ello” n = ” ?? 123″ z = x + y + n print (z)
Python 顯示跨行字串
如何用 Python 顯示跨行字串? Ans: “”” 要SHOW既野1 要SHOW既野2 …. “”” Example x = “”” I am a boy “”” print (x)
Protected: Complementing intuition with systematic study (OB)
There is no excerpt because this is a protected post.
Protected: What’s Organizational Behavior (OB) ?
There is no excerpt because this is a protected post.
Protected: The Importance of Interpersonal Skills
There is no excerpt because this is a protected post.
Protected: Organizational Behavior – Lesson 1 (ADMS)
There is no excerpt because this is a protected post.
Protected: Fevaworks: Big Data Course 15 Jun 2020
There is no excerpt because this is a protected post.
Protected: Fevaworks: Big Data Course 8 Jun 2020
There is no excerpt because this is a protected post.
How to know what module installed on the computer (Windows)
[Ref Python大數據特訓班 (ISBN:978-986-476-910-0)] use “pip list” in cmd.exe
Protected: Fevaworks: Big Data Course 1 Jun 2020
There is no excerpt because this is a protected post.
How to change the Jupyter start-up folder
[Ref https://stackoverflow.com/questions/35254852/how-to-change-the-jupyter-start-up-folder] Use the jupyter notebook config file: Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. Browse to the file location and open it in an Editor Search for the following line in the file: #c.NotebookApp.notebook_dir = ” Replace by c.NotebookApp.notebook_dir = ‘/the/path/to/home/folder/’ Make sure you use forward slashes in your path and use