python基础--输入输出

1.python输入输出用input和output

import os
str=input("please:")
os.system(str)

please:calc

计算机成功打开了计算器

2.id求地址,type求类型。语法非常的简答。

TheNumberofMygirlfriends=200
print(TheNumberofMygirlfriends)
print(type(TheNumberofMygirlfriends))
print(id(TheNumberofMygirlfriends))

运行,输出:

200
<class 'int'>
1973289648

发布了31 篇原创文章 · 获赞 10 · 访问量 274

猜你喜欢

转载自blog.csdn.net/qq_34240459/article/details/105073575