摘要: Description Consider the AC circuit below. We will assume that the circuit is in steady-state. Thus, the voltage at nodes 1 and 2 are given by v1 = VS 阅读全文
posted @ 2017-01-17 22:30 KennyRom 阅读(429) 评论(0) 推荐(0) 编辑
摘要: #try...except... try: You do your operations here; ...................... except ExceptionI: If there is ExceptionI, then execute this block. except ExceptionII: If there is ExceptionII, ... 阅读全文
posted @ 2017-01-17 20:48 KennyRom 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1. time module 2. calendar module 阅读全文
posted @ 2017-01-17 17:41 KennyRom 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. Basic 2. Accessing 3. delete 4. Built-in function 阅读全文
posted @ 2017-01-17 16:46 KennyRom 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1. Basic 2. accessing 3. Updating We can update a string with a variable. The variable can be a new string or some part of the old string and new stri 阅读全文
posted @ 2017-01-17 15:46 KennyRom 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1. Basic 2. convert 3. Mathematical function 4. Random number function 5. Trigonometric functions 阅读全文
posted @ 2017-01-17 11:36 KennyRom 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1. basic Dictionary is a special sequence. 2. accessing values 3. update 4. delete 5. properties Duplicate key is not allowed. 6. Built-in function 阅读全文
posted @ 2017-01-17 10:48 KennyRom 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. basic Tuples is a sequence of immutable object. It's a sequence, just like List. However, it cannot be changed. If a tuples only contain a object, 阅读全文
posted @ 2017-01-17 10:21 KennyRom 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1. How to run the python file? python ...py 2. UTF-8 is a character encoding, just like ASCII. 3. round(floating-point number) 4. %r print the way you 阅读全文
posted @ 2017-01-17 09:50 KennyRom 阅读(258) 评论(0) 推荐(0) 编辑