原创 如何解決python中出現的IndentationError: expected an indented block

我們都知道python是一門特別注重格式的語言,所以出現IndentationError: expected an indented block,對於新手來說很正常,出錯代碼如下while True: for i in menu:

原创 python學習-python字典的操作

在python中,字典是一種key-value類型數據,在字典中,key是一個元素惟一的標識,什麼是字典類型,下面舉一個簡單的例子。student = {'20141346001':'dinghaisheng', '