摘要: for x in range(1,4): for o in range(0,x-1): print('*',end='') pass pass print('*') print('\n')print("正方形")for c in range(1,4): for b in range(2): prin 阅读全文
posted @ 2018-08-16 23:48 心痛是尾调 阅读(777) 评论(1) 推荐(0) 编辑
摘要: #字符串拼接#str.join(元组、列表、字典、字符串) 之后生成的只能是字符串。str = "-";seq = ("a", "b", "c"); # 字符串序列sqr=['a','b','c','sss']#listssr=str.join(sqr)print('='.join(ssr)) pr 阅读全文
posted @ 2018-08-16 23:43 心痛是尾调 阅读(270) 评论(0) 推荐(0) 编辑