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 Read More

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”   Read More

Protected: What’s Productivity?

There is no excerpt because this is a protected post.

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: What’s Attitudes?

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”, Read More

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])) Read More

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) Read More

Python 中的字典函數

建立字典 – 鍵值對 x = {“name“:”Chan Tai Man“} print(x[“name”]) 加入/更改鍵值對 x[“gender“] = “Male” print (x) 移除鍵值對 x.pop(‘gender’) print (x) Read More

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, Read More

Python 計算字串長度?

如何用Python 計算字串長度? Example string = “1234567890” print (len(string)) Read More

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:])   Read More

Python 合併字串

如何用 Python 合併字串? Example x = “H” y = “ello” n = ” ?? 123″ z = x + y + n print (z) Read More

1 30 31 32 33 34 45
wpChatIcon