python basic tutorial
Python basic tutorial
I. Introduction
1.1 introduction to Python
Founder of python: Guido Van Rossum
Python download address: https://www.python.org/
Python document download address: https://www.python.org/doc/
Pycharm download address: https://www.runoob.com/w3cnote/pycharm-windows-install.html
...
Posted by dt_gry on Mon, 13 Jan 2020 23:28:11 -0800
Algorithmic Fibonacci Number-Reverse String
00509 Fibonacci Number
Title Description
The number of Fibonacci, usually expressed in F(n), forms a sequence called the Fibonacci series.The column starts with 0 and 1, and each subsequent number is the sum of the first two numbers.That is:
F(0) = 0, F(1) = 1
F(N) = F(N - 1) + F(N - 2), among N > 1.
Given N, calculate F(N).
Example 1:
...
Posted by Arnold_26 on Thu, 09 Jan 2020 16:00:56 -0800
Python has 35 built-in functions. Are you ok ay?
Python has more than 60 built-in functions, of which 35 are combed today
1 abs()
Modulus of Absolute or Complex Numbers
.
In [1]: abs(-6)Out[1]: 6
2 all()
Accepts an iterator and returns True if all elements of the iterator are true or False otherwise
In [2]: all([1,0,3,6])Out[2]: FalseIn [3]: all([1,2,3])Out[3]: True
3 any()
Accepts ...
Posted by OriginalSunny on Mon, 06 Jan 2020 07:04:23 -0800
mysql/MariaDB learning 2.3 mysql common functions
Environmental Science:
CentOS 7,mysql5.7
Summary description:
This article mainly describes how to use mysql common functions, such as string correlation function, date format function, calculation function, etc
Steps:
1. Mathematical function
Functions for mathematical calculation:
-- ABS(X):Return X Absolute value
sele ...
Posted by AL-Kateb on Mon, 06 Jan 2020 01:03:01 -0800
Many output methods of Hello World
I. C language
1. Direct output
printf(), puts() output directly
#include<stdio.h>
int main()
{
printf("Hello World!\n");
puts("Hello World!");
return 0;
}
Put() string splicing output
#include<stdio.h>
int main()
{
puts("Hello"" ""World""!");
return 0;
}
2. Output single characters one by ...
Posted by feri_soft on Thu, 02 Jan 2020 19:56:44 -0800
Job 2 branch structure of C language programming
1062 case conversion
1. Topic analysis
In this topic, we mainly investigate the use of judgment sentences, as well as the case knowledge of letters. The difference between the upper and lower case ASCII codes of a letter is 32
2. Title code
#include<stdio.h>
int main()
{
char a;
scanf("%c",&a);
if(a& ...
Posted by SurgeProto on Tue, 31 Dec 2019 13:45:25 -0800
How to concatenate an STD:: string and an int?
I think it's really simple, but there are some difficulties. If I had
std::string name = "John";
int age = 21;
How do I combine them to get a single string "John 21"?
#1 building
In C ++ 11, you can use STD:: to string, for example:
auto result = name + std::to_string( age );
#2 building
If you have C ++ 11, you can ...
Posted by joquius on Mon, 30 Dec 2019 06:20:12 -0800
base64 transcoding and decoding of js front end
Why do we use base
base64 is one of the most common encoding methods used to transmit 8-bit byte code on the network. Sometimes we need to encode the binary data in a form suitable for placement in the URL. At this time, base64 encoding is not readable, that is, the encoded data will not be directly seen by people. In addition ...
Posted by ddevitt on Mon, 23 Dec 2019 09:31:31 -0800
SCAU high level language programming -- Experiment 3 basic input and output
SCAU high level language programming -- Experiment 3 basic input and output
1, Exercises for upper limit of class
1. Character input and output
/*Version 1*/
#include<stdio.h>
int main(){
char a;
scanf("%c",&a);
printf("%c\n",a);
return 0;
}
/*Version 2*/
#include<stdio.h>
int main(){
cha ...
Posted by aouriques on Fri, 20 Dec 2019 07:52:44 -0800
python+java Blue Bridge Cup ACM daily algorithm training 10 basic questions
Catalog
1. Simple a+b
2. The first HelloWorld program!
3. Maximum of three numbers
4. Password decoding
5. The story of the cow
6.7.8.9.10
@(Custom Catalog title is written here)
Algorithm training website: http://www.dotcpp.com
1. Simple a+b
(1) address: https://www.dotcpp.c ...
Posted by fatmcgav on Wed, 11 Dec 2019 05:45:10 -0800