上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: We have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type called Point that represents... 阅读全文
posted @ 2014-09-23 22:35 平静缓和用胸音说爱 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Pickle translates almost any type of object into a string. pickle.dumps takes an object as a parameter and returns a string representation. ... 阅读全文
posted @ 2014-09-23 22:10 平静缓和用胸音说爱 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Files are organized into directories (also called ‘folders’). Every running program has a ‘current directory’, which is the default directory for most... 阅读全文
posted @ 2014-09-23 15:27 平静缓和用胸音说爱 阅读(200) 评论(0) 推荐(0) 编辑
摘要: The argument of write has to be a string, so if we want to put other values in a file, we have to convert them to strings. The easiest way to do that ... 阅读全文
posted @ 2014-09-23 11:55 平静缓和用胸音说爱 阅读(209) 评论(0) 推荐(0) 编辑
摘要: A text file is a sequence of characters stored on a permanent medium like a hard drive, flash memory, or CD-ROM. To read a file, you can use open to c... 阅读全文
posted @ 2014-09-22 23:30 平静缓和用胸音说爱 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Most of the programs we have seen so far are transient in the sense that they run for a short time and produce some output, but when they end, their d... 阅读全文
posted @ 2014-09-22 22:31 平静缓和用胸音说爱 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Ease of Use- Recording and Playback FunctionalityUFT provides 4 models to record a new test. Normal Recording:This is the default Recording mode that ... 阅读全文
posted @ 2014-09-18 17:58 平静缓和用胸音说爱 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 最近做性能测试,写了个python程序自动将URL里面的‘%2B’,‘20%’,‘3B'等转换成正常字符,方便查看。import os,sys;path = sys.path[0]os.chdir(path)encode_list = 'encode_list.txt'result = path +... 阅读全文
posted @ 2014-09-16 13:27 平静缓和用胸音说爱 阅读(1976) 评论(0) 推荐(0) 编辑
摘要: To choose a random word from the histogram, the simplest algorithm is to build a list with multiple copies of each word, according to the observed fre... 阅读全文
posted @ 2014-08-17 18:22 平静缓和用胸音说爱 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Finding the words from the book that are not in the word list from words.txt is a problem you might recognize as set subtraction; that is, we want to ... 阅读全文
posted @ 2014-08-17 16:54 平静缓和用胸音说爱 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页