码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果
leetcode 415 字符串相加
简介 简单题, 按照正常人的思路即可 code C++代码写复杂了, 应该, 补0的话可以省去判断谁是长字符串谁是短字符串 class Solution { public: string addStrings(string num1, string num2) { reverse(num1.begi ...
分类:其他好文   时间:2021-05-24 12:50:46    阅读次数:0
Swagger的学习
#Swagger 号称世界上最流行的Api框架; RestFul Api文档在线自动生成工具=>Api文档与API定义同步更新 直接运行,可以在线测试API接口 支持多种语言:(Java,Php...) Swagger官网 在项目中使用Swagger需要springbox: swagger2 ui ...
分类:其他好文   时间:2021-05-24 12:50:24    阅读次数:0
jsonCPP
jsoncpp是一个用于操作json数据的C++开源库 代码地址:https://github.com/open-source-parsers/jsoncpp 使用文档:http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.h ...
分类:Web程序   时间:2021-05-24 12:49:23    阅读次数:0
用Python画一个八角形代码示例
import turtle turtle.color("purple","yellow") turtle.speed(1) turtle.fd(100) turtle.right(60) turtle.fd(100) turtle.right(60) turtle.fd(100) turtle.ri ...
分类:编程语言   时间:2021-05-24 12:48:24    阅读次数:0
Python画一个四点连线并计算首尾距离
import turtle import math #先定义4个坐标 x1,y1=100,100 x2,y2=100,-100 x3,y3=-100,-100 x4,y4=-100,100 #然后画折线 turtle.penup() turtle.goto(x1,y1) turtle.pendown ...
分类:编程语言   时间:2021-05-24 12:46:21    阅读次数:0
Python3的运算符
比较运算符: == != < > <= >= 逻辑运算符 或与非 or and not x or y : x为true,则不计算y的值,直接返回ture x为false,则返回y的值 x and y: x为ture,则返回y的值, x为false,则不计算y,直接返回false x not y: x ...
分类:编程语言   时间:2021-05-24 12:45:55    阅读次数:0
普里姆算法(Prim)邻接矩阵法
算法代码 C#代码 using System; namespace Prim { class Program { static void Main(string[] args) { int numberOfVertexes = 9, infinity = int.MaxValue; int[][] ...
分类:编程语言   时间:2021-05-24 12:41:56    阅读次数:0
C# Body为form-data file文件上传至第三方接口
1.第三方提供了这么一个API接口,POST后将附件以file文件上传,通过postman工具界面是下面这种样子 Body为form-data类型,不管是文本还是文件,都能在value上填上去 2.C#实现接口调用代码 public static string PostForm(string url ...
分类:Windows程序   时间:2021-05-24 12:41:36    阅读次数:0
插入排序
现实中打牌 接收到新牌后在已有的牌里面进行排序,然后找到属于自己的位置进行插入: 手中的牌永远是有序的 Code package kb.algorithm; public class InsertionSort { public static void main(String[] args) { i ...
分类:编程语言   时间:2021-05-24 12:38:02    阅读次数:0
javax.swing自带的几种显示风格.使用LookAndFeelInfo查看
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { i ...
分类:编程语言   时间:2021-05-24 12:36:02    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!