Hello My Blog

第一次写博客,不知道写点什么合适,只好把老师课上的期末试题的sample拿出来了

def remove_consecutive_duplicate(word):
    if not word:
        return ''
    output = f'{word[0]}'
    for i in range(1,len(word)):
        if word[i] != word[i - 1]:
            output += word[i]
    return output
print(remove_consecutive_duplicate(input()))

 我为什么要开博客:

1.为了获得分享自己知识的成就感

2.为了记录自己的学习经历,激励自己

我要写什么:

1.自己的学习经历

2.知识的总结回顾

3.自己的学习计划

4.想说的话

博客的计划

1.每周一篇学习的回顾总结

2.代码要上传到Github上

posted @ 2018-05-22 19:49  AcodingDog  阅读(87)  评论(0编辑  收藏  举报