%s%d'''if .isdigit()的运用
Posted penn666
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了%s%d'''if .isdigit()的运用相关的知识,希望对你有一定的参考价值。
1 name = input("name:") 2 age = int(input("age:")) 3 job = input("job:") 4 gongzi = input("gongzi:") 5 if gongzi.isdigit(): 6 gongzi = int(gongzi) 7 8 msg = ‘‘‘ 9 -----for %s info------ 10 name:%s 11 age:%d 12 job:%s 13 gongzi:%s 14 tuixiu:%s 15 ---------end---------- 16 ‘‘‘%(name,name,age,job,gongzi,65-age) 17 print(msg)
以上是关于%s%d'''if .isdigit()的运用的主要内容,如果未能解决你的问题,请参考以下文章
Spacemacs启动时报错:Symbol's funciton definition is void: cl-struct-define
Inferred type 'S' for type parameter 'S' is not within its bound
No bean named 'cxf' is defined
One man's meat is another man's posion