首页 > 编程语言 > 详细

python入门

时间:2018-01-07 21:38:35      阅读:247      评论:0      收藏:0      [点我收藏+]

 

 

import keyword

print(keyword.kwlist)

 

[‘False‘, ‘None‘, ‘True‘, ‘and‘, ‘as‘, ‘assert‘, ‘break‘, ‘class‘, ‘continue‘, ‘def‘,
‘del‘, ‘elif‘, ‘else‘, ‘except‘, ‘finally‘, ‘for‘, ‘from‘, ‘global‘, ‘if‘, ‘import‘, ‘in‘, 
‘is‘, ‘lambda‘, ‘nonlocal‘, ‘not‘, ‘or‘, ‘pass‘, ‘raise‘, ‘return‘, ‘try‘, ‘while‘, 
‘with‘, ‘yield‘]

 

mystr = input("请输入数据")
print(mystr)

 

import os
cmd = input("cmd:")
os.system(cmd)

 

name=‘yasepix‘
print(type(name))
print(id(name))
num=111
print(type(num))
num=11111111111111111111111111111111111111111111111
print(type(num))


结果为:
<class ‘int‘>
<class ‘int‘>

 

python入门

原文:https://www.cnblogs.com/yasepix/p/8231568.html

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