首页 > 编程语言 > 详细

Hausaufgabe--Python 02

时间:2017-05-19 23:03:08      阅读:208      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!