摘要:
# in有两种用法: 1. 在for中. 是把每一个元素获取到赋值给前⾯的变量. 2. 不在for中. 判断xxx是否出现在str中. #len() 为内置函数,输出为1,2,3,4....., 长度都>0s="asdfer"print(len(s)) # 输出6 阅读全文
posted @ 2018-10-21 17:15
Jack的人生记录
阅读(274)
评论(0)
推荐(0)
摘要:
a = input("Name:")b = input("Age:")c = input("Job:")d = input("hobby:")info = ''' info of %s Name : %sAge : %sjob : %shobby: %s end ''' % (a,a,b,c,d)p 阅读全文
posted @ 2018-10-21 17:14
Jack的人生记录
阅读(209)
评论(0)
推荐(0)