摘要: # 有变量name = "aleX leNb" 完成如下操作:# 移除 name 变量对应的值两边的空格,并输出处理结果# l1 = name.strip('')# print(l1)# 判断 name 变量是否以 "al" 开头,并输出结果# print(name.startswith('al') 阅读全文
posted @ 2020-04-08 11:18 月球 阅读(124) 评论(0) 推荐(0)
摘要: #1. 判断下列逻辑语句的True,False.# 1)1 > 1 or 3 < 4 or 4 > 5 and 2 > 1 and 9 > 8 or 7 < 6#True# 2)not 2 > 1 and 3 < 4 or 4 > 5 and 2 > 1 and 9 > 8 or 7 < 6#Fal 阅读全文
posted @ 2020-04-08 11:17 月球 阅读(112) 评论(0) 推荐(0)