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
Command Prompt: 11 basic commands you should know (cd, dir, mkdir, etc.)
[Ref https://www.digitalcitizen.life/command-prompt-how-use-basic-commands] How to change the directory (folder) in Command Prompt (CMD) CD\ command go one folder up, use the “cd..” command How to change the drive in Command Prompt (CMD) “d:” change the drive and the directory at the same time – “cd D:\Python Code” How to view the contents of a directory in