07 2017 档案

perimeter of squares
摘要:def perimeter(): n = 5nL = [1,1,]if n == 0: return 0if n == 1: return 1 * 4if n == 2: return 2 * 4rl = [nL.append(nL[i]+nL[i-1]) for i in range(1, n)] 阅读全文

posted @ 2017-07-12 15:27 run_qin 阅读(138) 评论(0) 推荐(0)

map
摘要:def order(): sentence = "is2 Thi1s T4est 3a" senList = str.split(sentence) nums = list(range(1, 10)) nums = map(str, nums) nums = list(nums) position 阅读全文

posted @ 2017-07-10 20:55 run_qin 阅读(271) 评论(0) 推荐(0)

django路由
摘要:project 下的urls 配置 阅读全文

posted @ 2017-07-10 11:09 run_qin 阅读(126) 评论(0) 推荐(0)

for的骚用法
摘要:正常的def pig_it(): word = 'Pig latin is cool ' wordList = word.split() re = '' for item in wordList: if item.isalpha(): head = item[1:] ass = item[0]+'a 阅读全文

posted @ 2017-07-08 20:46 run_qin 阅读(165) 评论(0) 推荐(0)

3和5的倍数相加和
摘要:method1: def solu(num): 阅读全文

posted @ 2017-07-07 15:20 run_qin 阅读(217) 评论(0) 推荐(0)

PeteCake 字典和最小值
摘要:def cakes(recipe, available): # TODO: insert code count = [] for item in recipe: if item not in available: return 0 else: count.append(int(available[i 阅读全文

posted @ 2017-07-07 11:04 run_qin 阅读(146) 评论(0) 推荐(0)

Find the missing letter
摘要:charSet = set(chars) #去重复charSet = sorted(charSet) #排序charSet = ''.join(charSet) #转换成字符串flag = str.islower(charSet)charSet = str.lower(charSet)allChar 阅读全文

posted @ 2017-07-07 10:37 run_qin 阅读(403) 评论(0) 推荐(0)

鼠标进入,显示div
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> .box{ width:500px; height:600px; background- 阅读全文

posted @ 2017-07-06 14:39 run_qin 阅读(251) 评论(0) 推荐(0)

导航