while loop of python learning notes
python learning notes (8) while loop
1. while cycle
In the previous blog, we have learned about the for loop. Here we introduce another loop, while.
The syntax of while is very simple. According to its English definition "when...", as long as the following conditional statements of while are ...
Posted by SheepWoolie on Thu, 30 Jan 2020 03:29:17 -0800
Java programming idea enumeration type
Java programming idea enumeration type
Basic enum characteristics
Call the values() method of enum to traverse the Enum instance. The values method returns the Enum instance array, and the elements in the array are strictly kept in the order when they are declared in enum
public enum Shrubbery {
...
Posted by orionblue on Sun, 12 Jan 2020 07:10:41 -0800
Install Grok Debugger locally
1.Ruby installation. Note: do not use the latest 2.2 or 2.3 version of ruby. Some components may not be installed
yum -y install openssl-devel gcc
wget https://ruby.taobao.org/mirrors/ruby/2.1/ruby-2.1.7.tar.gz
tar zxf ruby-2.1.7.tar.gz
cd ruby-2.1.7
./configure --prefix=/usr/local/ruby2.1.7
make && make install
echo ...
Posted by minifairy on Sat, 04 Jan 2020 09:06:08 -0800
react short book project
Header
For fear of style conflicts among components, install the following for management
npm install styled-components
First, change index.css to style.js. If you want to set global variables, such as reset, then
import {injectGlobal} from 'styled-components';
injectGlobal`
html, body, div, span, applet, object, ...
Posted by comicrage on Sat, 04 Jan 2020 02:42:24 -0800
redis cluster configuration under Windows
Copy 6 copies of redis and modify each configuration file (redis.windows.conf)
cluster1 To configure
bind 192.168.1.223
port 6111
loglevel notice
logfile "D:/develop/redisClusterMS/Redis -clu -1/redis6111_log.txt"
appendonly yes
appendfilename "appendonly.6111.aof"
cluster-enabled yes ...
Posted by ac1dsp3ctrum on Fri, 03 Jan 2020 00:09:40 -0800
Redis cluster deployment
Experimental environmentSimulate 6 servers with 2 servers (add network card)
Primary server Redis1:ens33: 192.168.52.150ens36: 192.168.52.153ens37: 192.168.52.154From server Redis2:ens33: 192.168.52.148ens36: 192.168.52.155ens37: 192.168.52.156
Install Redis on both servers
[root@localhost ~]# yum install gcc gcc-c++ make -y ##Install envir ...
Posted by nostradamus on Mon, 30 Dec 2019 06:33:27 -0800
Write Visual Studio Code syntax highlighting plug-in for new language on December 24, 2017
Source library of this article: program-in-chinese/quan4-highlighter
Syntax highlighting is a basic function of a development environment. This paper attempts to use the previous "circle 4" language (see details The implementation of "cycle 4" by Antlr4+JavaScript in programming language experiment )Write a highlighted plug- ...
Posted by shae marks on Sun, 24 Nov 2019 09:45:47 -0800
Take you to set up your own virtual machine and Redis cluster environment, which is worth collecting!
Preface:
We've seen a lot of articles analyzing the use or principles of Redis, but the introduction to a complete set of independent redis cluster environments is not much or not detailed enough.
Then, this paper will take you hand to set up a Redis cluster environment, Redis cluster in the company's internal production environment, mostly bu ...
Posted by methodman on Tue, 19 Nov 2019 18:23:55 -0800
cocoapods installation errors and Solutions
Error in updating pod
rubygems/core_ext/kernel_warn
/Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
from /Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55: ...
Posted by xcoderx on Mon, 18 Nov 2019 06:09:04 -0800
[front end ramble] Git internals - Git objects
Reading guide This article is right Git Pro 10.2 Git internals - git objects The interpretation and transformation of the chapter mainly introduces two things: 1) using Git underlying command to complete the submission, 2) trying to use NodeJS to parse Git objects (Ruby is provided in the article).
###0x001 initialization Initialize a local war ...
Posted by fredted40x on Sun, 17 Nov 2019 23:14:17 -0800