源程序: #include <iostream>#include <string>#include <iomanip>using namespace std; class student{private: string name1; float score1;public: int i; stude ...
分类:
其他好文 时间:
2020-02-05 13:40:38
阅读次数:
67
第一种方案 BFC(Block Formatting Context) 块级格式化环境/布局环境 BFC是CSS中的一个隐含属性,开启BFC该元素会变成一个独立的布局区域 元素开启BFC的特点: 1.开启BFC元素不会被浮动元素覆盖 2.开启BFC元素子元素和父元素外边距不会重叠 3.开启BFC的元 ...
分类:
其他好文 时间:
2020-02-05 13:23:36
阅读次数:
65
function(num,precision){ precision =precision||12; return +parseFloat(num.toPrecision(precision)); } ...
分类:
其他好文 时间:
2020-02-05 09:49:29
阅读次数:
67
Given a list of positive integers, the adjacent integers will perform the float division. For example, [2,3,4] -> 2 / 3 / 4. However, you can add any ...
分类:
其他好文 时间:
2020-02-05 09:32:59
阅读次数:
67
一 int 整 char 字 float 浮 double 双 switch 切 case 例 if 如 else 另 return 回 break 破 continue 续 new 新 delete 删 namespace 名宇 this 此 try 试 throw 抛 二 int 整数型 cha ...
分类:
其他好文 时间:
2020-02-04 23:46:20
阅读次数:
127
Numpy常用数据结构 1. 数组创建 In [ ]: # 导入库 import numpy as np In [ ]: arr1 = np.array([-9,7,4,3]) In [ ]: arr1 In [ ]: arr2 = np.array([-9,7,4,3],dtype =float) ...
分类:
其他好文 时间:
2020-02-04 22:08:05
阅读次数:
110
源程序: #include <iostream>using namespace std; class vehicle{public: int wheels; float weight;public: vehicle(int wheels1, float weight1) { wheels = whe ...
分类:
其他好文 时间:
2020-02-04 20:10:34
阅读次数:
60
源程序: #include<iostream>using namespace std; class another;class Base{private: float x;public: void print(const another &K);};class Derived:public Base ...
分类:
其他好文 时间:
2020-02-04 15:43:59
阅读次数:
79
参考自https://www.learnpython.org/en/String_Formatting 问题概述: 有时候在使用print函数输出时,往往需要不断地切换字符串和变量,操作起来很不方便,需要不断地打引号和逗号。比如: firstName = 'Bob' lastName = 'Dyla ...
分类:
编程语言 时间:
2020-02-04 14:22:23
阅读次数:
88
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popula ...
分类:
其他好文 时间:
2020-02-03 22:08:22
阅读次数:
85