上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 72 下一页
摘要: ``` # import itertools # # my_list = [1, 2, 3, 4, 5, 6] # # combinations = itertools.combinations(my_list, 3) # permutations = itertools.permutations(my_list, 3) import itertools word = 'sample' my_... 阅读全文
posted @ 2017-06-21 15:29 2021年的顺遂平安君 阅读(177) 评论(0) 推荐(0)
摘要: # import itertools## my_list = [1, 2, 3, 4, 5, 6]## combinations = itertools.combinations(my_list, 3)# permutations = itertools.... 阅读全文
posted @ 2017-06-21 15:29 2021年的顺遂平安君 阅读(53) 评论(0) 推荐(0)
摘要: import timeef_cache = {}def expensive_func(num): if num in ef_cache: return ef_cache[num] print ("Computing {}...".... 阅读全文
posted @ 2017-06-21 15:04 2021年的顺遂平安君 阅读(56) 评论(0) 推荐(0)
摘要: ``` import time ef_cache = {} def expensive_func(num): if num in ef_cache: return ef_cache[num] print ("Computing {}...".format(num)) time.sleep(1) result = num*num ef_c... 阅读全文
posted @ 2017-06-21 15:04 2021年的顺遂平安君 阅读(151) 评论(0) 推荐(0)
摘要: ``` employees = ['Corey', 'John', 'Rick', 'Steve', 'Carl', 'Adam'] output = '\n' for employee in employees: output += '\t{}>/li>\n'.format(employee) print ('Address of output is {}'.format(i... 阅读全文
posted @ 2017-06-21 14:56 2021年的顺遂平安君 阅读(122) 评论(0) 推荐(0)
摘要: employees = ['Corey', 'John', 'Rick', 'Steve', 'Carl', 'Adam']output = '\n'for employee in employees: output += '\t{}>/li>\n'... 阅读全文
posted @ 2017-06-21 14:56 2021年的顺遂平安君 阅读(40) 评论(0) 推荐(0)
摘要: import sqlite3from employee import Employeeconn = sqlite3.connect(':memory:') #for testingc = conn.cursor()c.execute("""CREATE T... 阅读全文
posted @ 2017-06-21 14:42 2021年的顺遂平安君 阅读(67) 评论(0) 推荐(0)
摘要: ``` import sqlite3 from employee import Employee conn = sqlite3.connect(':memory:') #for testing c = conn.cursor() c.execute("""CREATE TABLE employees( first text, last tex... 阅读全文
posted @ 2017-06-21 14:42 2021年的顺遂平安君 阅读(171) 评论(0) 推荐(0)
摘要: file settings colors&fonts save as (save the current scheme as your own) font change size 阅读全文
posted @ 2017-06-21 13:22 2021年的顺遂平安君 阅读(222) 评论(0) 推荐(0)
摘要: file->settings->colors&fonts-> save as (save the current scheme as your own)-> font- >change size 阅读全文
posted @ 2017-06-21 13:22 2021年的顺遂平安君 阅读(64) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 72 下一页