08 2017 档案

摘要:00-- In python, else can be used with if; while; try 01-- using "with", we can open a file without f.close(): 002-- make use of exception to make the 阅读全文
posted @ 2017-08-31 04:18 ReedyLi 阅读(200) 评论(0) 推荐(0)
摘要:00-- we can use Try, Except, Finally to handle the Exceptions Oder 001: use Try and Except to handle the exceptions in the code : 002-- usage of raise 阅读全文
posted @ 2017-08-30 04:24 ReedyLi 阅读(188) 评论(0) 推荐(0)
摘要:0-- Exceptions 1-- Syntax Error 2-- Index Error 3--Attribute Error 4--Key Error 5--Name error 6--Type Error 阅读全文
posted @ 2017-08-27 06:08 ReedyLi 阅读(144) 评论(0) 推荐(0)
摘要:1-- pickle, transfer the target document to binary to save. 2, pickle_file, write 3. pickle_file, read To write a script to separet the text by ":" an 阅读全文
posted @ 2017-08-26 06:49 ReedyLi 阅读(145) 评论(0) 推荐(0)
摘要:Save the txt with UTF format and then open the file with f1 = open(path, encoding = 'utf') 阅读全文
posted @ 2017-08-26 06:31 ReedyLi 阅读(635) 评论(0) 推荐(0)