8.1-RELEASE 8.2-RELEASE 將於 2012年7月31日 eol (End Of Life) 意味它們由 8 月 1 日起。將不會添加官方安全補丁。 請於限期前升級至 8.3-RELEASE, 8-STABLE, 9.0-RELEASE, 9-STABLE 或 10-CURRENT
本帖最后由 tempo8 于 2012-04-15 21:04 编辑 请问大仙儿,以下用xlwt 写Excel文件的代码7th行为何出现eol while scanning string literal? 特别注意引号''对应了的啊![code]# -*- coding: utf-8 -*- import xlwt list1 = [1,2,3,4,5] list2 = [234,267,281,301,331] wb = xlwt.Workbook() ws = wb.add_sheet('First sheet’) ws.write(0,0,'Column A') ws.write(0,1,'Column B') i = 1 for x,y in zip(list1,list2): #Walk t...
本帖最后由 gdp8899 于 2013-07-11 00:14 编辑
python is是种很特殊的语法,你在其它的语言应该不会见到这样的用法,今天就来说说这个把。 python is 按照自字面的意思就是什么东西是什么的,比如he is a boy,他是一个大男孩,而我们一般在写python程序的时候,也会用到一些判断,有的时候也会用到python is,比如判断下这个字符是否为none。 下面是python is的例子,比如我们来判断下一个字符串。 a = 'abc' if a is not None: print 'a is not none' 输出的结果是 a is not ...
#!/urs/bin/python contact = {} contact_list = [] select = ['1.insert','2.delete'] for i in select: print i print 'what\'s your choise:' get = raw_input('1 or 2') if get == 1: test = 1 while test==1: contact['name'] = raw_input("please input name: ") contact['phone'] = raw_input("please input phone number: ") contact_list.append(contact.copy()) go_on = raw_input("continue?\n") ...