摘要:
package learning;import java.util.*;public class Guess{ public static void main(String [] args){ int j=0; while(j<4){ int count1=0; int count2=0; int 阅读全文
摘要:
#_*_ coding:utf-8 _*_# author chocof = open('contact.txt','r',encoding='utf-8') #打开可读文件name = input("请输入你要查询人的名单:") #输入查询名单for line in f: if name in line: print(line) f_name = op... 阅读全文
摘要:
#_*_ coding:utf-8 _*_# author chocouse_name = input("请输入你的用户名:")info = {"姓名":"密码"}for i in info.keys(): if use_name == i: time = 0 while time < 3: pas 阅读全文
摘要:
取字典info中值为10000的key值: def getkeys(key): info = {"刘江红": 12000, "曹俊杰": 10000, "赵磊": 10000} for i in info.keys(): if info[i] == key: print(i)getkeys(1000 阅读全文