2020年5月9日
摘要: 1, 字符串基本操作 1.1 字符串相关操作 # 1、字符串的相关操作: # (1) 字符串的拼接: s1 = "我是字符串1号" s2 = "我是字符串2号" s3 = s1 + s2 print(s3) # 我是字符串1号我是字符串2号 # (2) 字符串的重复: s1 = "早餐要吃好" s2 阅读全文
posted @ 2020-05-09 21:59 fdsimin 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、双循环案例练习 1.1 十行十列小星星 while j < 10: i = 0 while i < 10: print("*",end ="") i += 1 print() j += 1 # ********** # ********** # ********** # ********** # 阅读全文
posted @ 2020-05-09 09:09 fdsimin 阅读(504) 评论(0) 推荐(0) 编辑