您的位置:首页 > 编程语言 > Python开发

Python中常用的其它基本操作

2017-11-22 20:21 183 查看
#要用户手动输入数字或字符串

num = input( "please input the num\n" )

str = raw_input( "please input the str\n" )

nums = map( int , raw_input().split() )

#记录运行时间

import time

start = time.clock()

......

end = time.clock()

print('Running time: %s Seconds'%(end-start))

#判断字母大小写,全是大写则为1

str.isupper()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐