Protected: What’s Contingency Variables? (OB)
There is no excerpt because this is a protected post.
Protected: What’s Affective Events Theory (AET)?
There is no excerpt because this is a protected post.
Protected: Implementing Diversity Management (OB)
There is no excerpt because this is a protected post.
Protected: Organizational Behavior – Lesson 3 (ADMS)
There is no excerpt because this is a protected post.
設置Django (Windows版Anaconda)
安裝虛擬環境 開啟 Anaconda 的 CMD.exe Promopt pip install virtualenv pip install virtualenvwrapper 安裝Anaconda 開啟 Anaconda 的 CMD.exe Promopt conda install -c anaconda django Ref: https://anaconda.org/anaconda/django Anaconda Django “python manage.py runserver” Error (環境變數設定) 建置Django 開啟 Anaconda 的 CMD.exe Promopt 進入Python Env 的文件夾 (e.g D:\Python\envs) D: cd Python\envs dir conda create –name django2 django
Anaconda Django “python manage.py runserver” Error (環境變數設定)
如果要在Windows 版Anaconda 中用 Django, 就應該先做環境變數設定, 否則您可能會出現Error 方法是先locate Anaconda 安裝在那, 如果Anaconda 本身安裝在D:\Python, 就入去看看會吾會有python37 (代表python 3.7) 的檔案 右按”我的電腦”>>內容>>進階系統設定>>進階>>環境變數 新增>>變數名稱: “path” ; 變數值: “D:\Python;D:\Python\python37”
Protected: What’s Mission, Goals, Strategies, Tactics?
There is no excerpt because this is a protected post.
Protected: Scope of Operations Management
There is no excerpt because this is a protected post.
Protected: Operations Management – Lesson 2 (ADMS)
There is no excerpt because this is a protected post.
Protected: Two major forms of workplace diversities?
There is no excerpt because this is a protected post.
Protected: Organizational Behavior – Lesson 2 (ADMS)
There is no excerpt because this is a protected post.
Protected: What’s Supply Chain, Operations, Management?
There is no excerpt because this is a protected post.
Protected: Operations Management – Lesson 1 (ADMS)
There is no excerpt because this is a protected post.
檢查某”字”是否在陣列, 字典, 字串
Example 1 arr = [1,2,3] print (1 in arr) – 預期True print (9 in arr) – 預期False Example 2 arr = [[1,2,3],[4,5,6]] print (1 in arr) – 預期False print (1 in arr[0]) – 預期True print (4 in arr[0]) – 預期False print (4 in arr[1]) – 預期True Example 3 x = {“name”:”Chan Tai Man”,
Python 陣列應用 (array)
建立一個3維陣列 arr = [[1,2,3],[4,5,6],[7,8,9]] 列出整個陣列 print(arr) 列出某維陣列的第X個元素 print (arr[0][0]) – 預期得到”1″ print (arr[1][0]) – 預期得到”4″ print (arr[0][1]*arr[1][1]) – 預期得到”2*5 = 10″ 將某陣列內數值加總 print (sum(arr[0])) print (sum(arr[1]))
Python 重覆運算
Examples a = 0 a += 5 print (a) a = 0 a -= 5 print (a) a = 5 a *= 2 print (a) a = 5 a /= 2 print (a) a = 5 a %= 2 print (a) a = 2 a **= 3 print (a)
Python 中的字典函數
建立字典 – 鍵值對 x = {“name“:”Chan Tai Man“} print(x[“name”]) 加入/更改鍵值對 x[“gender“] = “Male” print (x) 移除鍵值對 x.pop(‘gender’) print (x)