首页 > 代码库 > Hausaufgabe--Python 02

Hausaufgabe--Python 02

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