Python
文章平均质量分 72
imp_lc
网络前端初心者
展开
-
Python刷题笔记(1)- 数独判断
虽然脱离了码农行列,但是觉得写代码这个技能,每个人都应该会一点,而且最近突然有兴趣学习起python,恰好朋友提到codewar以打怪练级的形式来刷题熟练技能,于是就去玩了,感觉这种方式确实比较有成就感,而且不同等级对应不同难度,刚好适合我这种新手学习。为了能有所成长,就决定写写笔记,把想法和心得记录一番,希望能坚持和有所提高(虽然之前的学习计划都坑掉了。。目前的等级是6(数字越低等级越高,最原创 2015-11-16 16:50:30 · 2278 阅读 · 0 评论 -
Python刷题笔记(2)- 取5位大数字
又到codewar每日刷题时刻,今天抽到的题依旧是难度5题目:In the following 6 digit number:28391091 is the greatest sequence of 2 digits.Complete the solution so that it returns the largest five digit number found原创 2015-11-17 11:22:17 · 1202 阅读 · 0 评论 -
Python刷题笔记(3)- 16进制和ascii码互转
今天看了下等级标示,原来kyu上面还有dan的等级,升级路漫漫,今天是5kyu题目题目:Write a module Converter that can take ASCII text and convert it tohexadecimal. The class should also be able to take hexadecimal andconvert it to A原创 2015-11-18 17:19:12 · 4295 阅读 · 1 评论 -
Python刷题笔记(5)- 秒转化为时间
题目:Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)HH = hours, padded to 2 digits, range: 00 - 99MM = minute原创 2015-11-24 11:36:59 · 626 阅读 · 0 评论 -
Python刷题笔记(4)- 字符串重组
题目:Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output should be capitalized only if the original word was capitali原创 2015-11-19 10:32:00 · 949 阅读 · 0 评论 -
Python刷题笔记(5) - 判断“幸运数”
题目:In some countries of former Soviet Union there was a belief about lucky tickets. A transport ticket of any sort was believed to posess luck if sum of digits on the left half of its number was原创 2015-11-20 16:41:10 · 2321 阅读 · 0 评论