摘要:
#coding=utf-8 username = "baidu" password = "123" i = 0 while i<3: name = input("请输入你的用户名:") pwd = input("请输入你的密码:") if username ==name and pwd ==password: print("登陆成功") ... 阅读全文
摘要:
#coding=utf-8 count = 0 while count <=5: count +=1 if count == 3:break print("loop",count) else: print("正常执行完了!") print("----over----") #当循环被break打断的话就不会执行else 阅读全文
摘要:
public class Arr{ public static void main(String[] args) { int arr[]=new int [5]; //定义方法2为//int []arr =new int [5](Java推荐使用) System.out.println(arr[0]); arr[0] = 10; System.out.println(arr[0]); } } /... 阅读全文
摘要:
Numbers(数字)String(字符串)List(列表)Tuple(元组)Dictionary(字典)int 1,2,3用于计算bool True false 用于判断str 存储少量数据,进行操作 '1231asd','dasda'"asdsadsa",'asdsadsad'list :存储大 阅读全文