08 2022 档案

摘要:1 居中输出 需要使用center函数 使用center函数,需要str类型的数据。width参数:长度,需要填一个int类型的参数fillchar参数:两边填充的字符,需要一个str类型的参数(可以为空格,但不能为空) S: str = 'one people' print(S.center(10 阅读全文
posted @ 2022-08-30 10:18 chengxuyonghu 阅读(4320) 评论(0) 推荐(0) 编辑