Python学习笔记(1)——Pylatin
来源:互联网 发布:假视频软件 编辑:程序博客网 时间:2024/06/14 18:06
前天在Codecamedy学习Python进度到了80%,结果今天进去发现又回到了4%,好气,但也要保持围笑
为防止再次从头再来,在这里粘下代码,也算是记笔记吧
1-6:
print 'Welcome to the Pig Latin Translator!'# Start coding here!original= raw_input('Enter a word: ')if len(original) > 0 and original.isalpha(): print originalelse: print "empty"
end:
pyg = 'ay'original = raw_input('Enter a word:')if len(original) > 0 and original.isalpha(): print originalelse: print 'empty'word = original.lower()first = word[0]new_word = word + first +pygnew_word = new_word[1:len(new_word)]
阅读全文
0 0
- Python学习笔记(1)——Pylatin
- Python学习笔记(—):初识python
- 【笔记】Python学习笔记 ——1
- Python学习笔记(1)——Python学习笔记以及概述
- Python学习笔记1——IPython
- Python学习笔记(1)—文件操作
- Python学习笔记(六)— 函数
- Python学习笔记(1)——函数
- Python学习笔记(1)——基础知识
- Python学习笔记1——python的关键要素
- [Python学习笔记]1——从零开始学Python
- 【Python】学习笔记——-1、什么是Python?
- [Python]python学习笔记(一)——语法
- [Python]python学习笔记(二)——常见问题
- [python]python学习笔记(三)——编译
- [python]python学习笔记(六)——界面编程
- [python]python学习笔记(七)——加密
- [Python]Python学习笔记(八)——问题
- java数组中的length属性到底属于java中的哪个类
- keystore was tampered with,or password was incorrect解决办法
- 码云,git使用 教程
- spring security入门程序----登录
- Spring容器管理对象
- Python学习笔记(1)——Pylatin
- java学习初探2之语言基础(3)
- 详细解析oracle中left join,right join,inner join用法
- Java继承与抽象类
- Spring Cloud Config配置SVN:No valid credentials provided
- HDU6052 [2017多校联合2] To my boyfriend
- 关于HashMap的一些问题
- springmvc中操作json,配置FastJson
- 常用对象