![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
蝌蚪123456
这个作者很懒,什么都没留下…
展开
-
python 解析json
python 解析json,输入文件内容{"happy":{"date":20201020}, "birth":19920103, "gender":"F"}代码#!/usr/bin/env python# -*- coding: utf-8 -*import reimport jsonimport osimport sysdef process(line, loginfo): """ 提取出符合条件的json """ if 'happy' in loginfo and 'd原创 2021-03-08 11:20:50 · 218 阅读 · 0 评论 -
java、C++、python三种语言对比之类 class
需求实现一个简单的Student类,属性nameage方法默认构造函数带参数的构造函数两个属性的get和set方法测试,实现main方法测试Student类中的方法都可以用java定义一个Classpublic class Student { private String name; private int age; pub...原创 2018-03-14 19:13:23 · 1983 阅读 · 0 评论 -
177.Merge Two Binary Trees
题目Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.You need to merge them into a new binary ...原创 2018-03-19 19:35:49 · 244 阅读 · 0 评论 -
178.Custom Sort String
题目S and T are strings composed of lowercase letters. In S, no letter occurs more than once.S was sorted in some custom order previously. We want to permute the characters of T so that they match t...原创 2018-03-19 20:02:53 · 301 阅读 · 0 评论