码迷,mamicode.com
首页 > 编程语言 > 详细

Hausaufgabe--Python 02

时间:2017-05-19 23:47:01      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:pytho   fga   else   from   rom   --   python   nbsp   计算   

0- 计算BIF的个数

len(dir(__builtins__))

 

1- Get the input from user 

e.g. 

Get the number: 

number = int(input (‘please input a number between 1-100 : ‘))

if 1<=number<=100:
print (‘you are so beautiful‘)

else:
print(‘you are too naughty‘)

 

Get string:

name = input(‘please input your name: ‘)
print (‘Hello‘, name)

 

Hausaufgabe--Python 02

标签:pytho   fga   else   from   rom   --   python   nbsp   计算   

原文地址:http://www.cnblogs.com/Shareishappy/p/6880550.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!