Giter VIP home page Giter VIP logo

learning-diary's People

Watchers

James Cloos avatar

learning-diary's Issues

2016.3.11

 From now on,I will study programing.My English is very poor,I want to improve my English skills of reading and writing.If I have some words or grammar mistakes in my diary,please don't laugh at me, please point my faults,help me improve my English.Thank you very much! 

 I have wasted a lot of time in my life,if I want to be a New Era of lady,I should give up some thoughts about  age , gender and the opinons of others and etc..

I should be myself!

今天在虚拟机里安装了atom,sublime,chrome。建立自己熟悉的环境。开始重新学习python,先从廖雪峰的官方网站上学习。
目标:三个月拿下 代码,数据结构,算法。

在学习python教程的条件和循环一节时,在运行代码:
age=raw_input('please input your age:')
if age >=18:
print 'your age is ',age
print 'adult'
elif age >=6:
print 'your age is ',age
print 'teenager'
else:
print 'kid'

无法得到正确的结果,后来发现age raw_input的是字符串,故应该改为:
age=int(raw_input('please input your age:'))
if age >=18:
print 'your age is ',age
print 'adult'
elif age >=6:
print 'your age is ',age
print 'teenager'
else:
print 'kid'

此处以后应注意不同类型.

今天完成了廖教程的python基础。
明天要完成至少三章。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.