用于 Quinella/Exacta/Trifecta/Pick Four/Pick Six/Quaddie/Superfecta 7大规则的测试
上2篇给了详细API 设计,下面我们来模拟测试下:
Quinella:
self.bet_type = "Quinella"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0])
self.tab_odds.append([3.9,7.2,4.2,5.5,5.9,"-",11.0]) # Strategy
self.scale_tab = 0
self.scale_user = 0
self.user_div_range = (1,20)
#self.tab_div_range = (5,1000000)
self.overlay = False
self.overlay_var = 100
self.percent_by_number = 100
self.stake=0.5
self.outlay_amount=50.
self.flat_stakes=False
self.takeout = 200.
self.rounding="Nearest"
self.tabodds1 = (1,5.)
self.tabodds2 = (1,10.)
Here is the output:
2 42.5
(1, 2) 15.000
(1, 4) 27.500 Calculation Time: 0.001
Exacta:
self.bet_type = "Exacta"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0])
self.tab_odds.append([3.9,7.2,4.2,5.5,5.9,"-",11.0]) # Strategy
self.scale_tab = 0
self.scale_user = 0
self.user_div_range = (1,20)
#self.tab_div_range = (5,1000000)
self.overlay = False
self.overlay_var = 100
self.percent_by_number = 100
self.stake=0.5
self.outlay_amount=50.
self.flat_stakes=False
self.takeout = 200.
self.rounding="Nearest"
self.tabodds1 = (1,5.)
self.tabodds2 = (1,10.)
Here is the output:
4 46.0
(1, 2) 8.000
(1, 4) 14.000
(4, 1) 13.500
(1, 5) 10.500 Calculation Time: 0.001
Trifecta:
self.bet_type = "Trifecta"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0])
self.tab_odds.append([3.9,7.2,4.2,5.5,5.9,"-",11.0])
self.standouts_1 = [1,2]
self.standouts_2 = [1,2,4,5] # Trifecta strategy
self.scale_tab = -1
self.scale_user = 0
self.user_div_range = (10,50)
self.tab_div_range = (50,1000000)
self.overlay = True
self.overlay_var = 150
#self.percent_by_number = 100
self.stake=0.5
self.outlay=1.0
self.flat_stakes=False
self.takeout = 200.
self.rounding="Nearest"
self.tabodds1 = (1,5.)
self.tabodds2 = (1,10.)
self.tabodds3 = (1,20.)
Here is the output:
3 9.5
(1, 2, 4) 4.000
(1, 2, 5) 3.000
(1, 2, 6) 2.500 Calculation Time: 0.001
self.bet_type = "Trifecta"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0]) # Trifecta strategy
self.scale_tab = -1
self.scale_user = 0
self.user_div_range = (10,50)
self.tab_div_range = (50,1000000)
self.overlay = False
self.overlay_var = 150
self.percent_by_number = 50
self.stake=0.5
self.outlay_amount=20.
self.flat_stakes=False
self.takeout = 200.
self.rounding="Nearest"
self.tabodds1 = (1,5.)
self.tabodds2 = (1,10.)
self.tabodds3 = (1,20.)
Here is the output:
3 18.0
(1, 2, 4) 6.5
(1, 4, 2) 6.5
(2, 1, 4) 5.0 Calculation Time: 0.001
self.bet_type = "Trifecta"
self.nraces = 1
self.horse_ids.append(range(1,25))
self.tab_odds.append([15.9,29.0,34.3,17.8,11.2,100.0,17.7,14.2,57.7,13.4,12.3,17.5,34.0,12.4,19.2,17.9,66.5,38.6,11.9,100.0,57.4,20.9,16.0,15.2])
self.user_odds.append([66.3,44.1,21.0,24.2,48.6,38.5,18.8,15.5,11.0,94.0,13.6,16.8,12.9,16.2,12.1,11.0,100.0,11.1,29.3,16.3,32.9,100.0,23.2,12.5]) # Strategy - Bet them all!!!
Here is the output:
12144 6072.0
(16, 9, 18) 0.500
(9, 16, 18) 0.500
(9, 18, 16) 0.500
(16, 18, 9) 0.500
.
.
.
(17, 10, 22) 0.500
(22, 10, 17) 0.500
(22, 17, 10) 0.500
(17, 22, 10) 0.500 Calculation Time: 0.5380
Pick Four:
self.bet_type = "Pick4"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0])
self.tab_odds.append([3.9,7.2,4.2,5.5,5.9,"-",11.0])
#self.standouts_1 = [1,2]
#self.standouts_2 = [1,2,4,5] # Pick4 strategy
self.scale_tab = 0
self.scale_user = 0
self.user_div_range = (1,250)
self.tab_div_range = (250,1000000)
self.overlay = True
self.overlay_var = 200.
self.percent_by_number = 100
#self.stake=0.5
#self.outlay_amount=5.
self.flat_stakes=False
self.takeout = 500.
self.rounding="Nearest"
self.tabodds1 = (1,10.)
self.tabodds2 = (1,10.)
self.tabodds3 = (1,20.)
self.tabodds4 = (1,20.)
Here is the output:
9 13.0
(1, 2, 5, 6) 2.000
(1, 2, 6, 5) 2.000
(1, 2, 4, 9) 1.500
(2, 1, 5, 6) 1.500
(2, 1, 6, 5) 1.500
(2, 1, 4, 9) 1.500
(1, 2, 9, 4) 1.000
(1, 2, 5, 9) 1.000
(1, 2, 6, 9) 1.000 Calculation Time: 0.002
Pick Six:
self.bet_type = "Pick6"
self.nraces = 1
self.horse_ids.append([1,2,4,5,6,8,9])
self.user_odds.append([2.0,4.2,4.2,5.5,5.9,"-",11.0])
self.tab_odds.append([3.9,7.2,4.2,5.5,5.9,"-",11.0])
#self.standouts_1 = [1,2]
#self.standouts_2 = [1,2,4,5] # Pick6 strategy
self.scale_tab = 0
self.scale_user = 0
#self.user_div_range = (1,250)
#self.tab_div_range = (250,1000000)
self.overlay = True
self.overlay_var = 100.
#self.percent_by_number = 100
#self.stake=0.5
self.outlay_amount=15.
self.flat_stakes=False
self.takeout = 1000.
#self.rounding="Nearest"
self.tabodds1 = (1,10.)
self.tabodds2 = (1,10.)
self.tabodds3 = (1,20.)
self.tabodds4 = (1,20.)
self.tabodds5 = (1,50.)
self.tabodds6 = (1,50.)
self.userodds1 = (1,10.)
self.userodds2 = (1,10.)
self.userodds3 = (1,20.)
self.userodds4 = (1,20.)
self.userodds5 = (1,50.)
self.userodds6 = (1,50.)
Here is the output:
4 15.0
(1, 4, 2, 5, 6, 9) 4.500
(1, 2, 4, 5, 6, 9) 4.000
(1, 2, 4, 6, 5, 9) 4.000
(2, 1, 5, 6, 4, 9) 2.500 Calculation Time: 0.008
Quaddie:
self.bet_type = "Quaddie"
self.nraces = 4 self.horse_ids.append(range(1,12))
self.tab_odds.append([5.2,3.2,16.2,5.8,9.3,34.8,6.7,9.7,14.3,10.5,60.]) self.horse_ids.append(range(1,8))
self.tab_odds.append([1.3,10.0,12.0,3.1,15.1,1.6,2.3]) self.horse_ids.append(range(1,10))
self.tab_odds.append([8.3,31.0,4.2,10.0,6.0,7.2,3.2,20,42.6]) self.horse_ids.append(range(1,8))
self.tab_odds.append([31.7,13.7,4.7,22.6,11.7,2.4,11.7]) #self.standouts_1 = [1,2]
#self.standouts_2 = [1,2,4,5] # Strategy
self.scale_tab = 0
#self.scale_user = 0
#self.user_div_range = (1,250)
#self.tab_div_range = (250,1000000)
#self.overlay = True
#self.overlay_var = 200.
#self.percent_by_number = 10
#self.stake=0.5
self.outlay_amount=25.
self.flat_stakes=False
self.takeout = 500.
self.rounding="Round Up"
self.tabodds1 = (1,10.)
self.tabodds2 = (1,10.)
self.tabodds3 = (1,10.)
self.tabodds4 = (1,10.)
Here is the output:
8 25.0
(2, 1, 7, 6) 4.5
(2, 6, 7, 6) 4.0
(2, 1, 3, 6) 3.5
(2, 6, 3, 6) 3.0
(1, 1, 7, 6) 3.0
(2, 7, 7, 6) 3.0
(4, 1, 7, 6) 2.5
(1, 1, 5, 6) 1.5 Calculation Time: 0.002
self.bet_type = "Quaddie"
self.nraces = 4 self.horse_ids.append(range(1,12))
self.tab_odds.append([5.2,3.2,16.2,5.8,9.3,34.8,6.7,9.7,14.3,10.5,60.])
self.user_odds.append([4.1, 3.8, 19.1, 8.0, 7.6, 35.8, 7.2, 11.1, 11.6, 10.9, 56.8]) self.horse_ids.append(range(1,8))
self.tab_odds.append([1.3,10.0,12.0,3.1,15.1,1.6,2.3])
self.user_odds.append([1.6, 13.0, 7.2, 2.8, 20.8, 2.3, 1.9]) self.horse_ids.append(range(1,10))
self.tab_odds.append([8.3,31.0,4.2,10.0,6.0,7.2,3.2,20,42.6])
self.user_odds.append([5.0, 34.8, 5.3, 14.3, 4.3, 8.5, 3.2, 28.9, 61.3]) self.horse_ids.append(range(1,8))
self.tab_odds.append([31.7,13.7,4.7,22.6,11.7,2.4,11.7])
self.user_odds.append([29.3, 13.9, 4.7, 26.1, 15.2, 1.5, 8.9]) #self.standouts_1 = [1,2]
#self.standouts_2 = [1,2,3]
#self.standouts_1 = [1,4,5]
#self.standouts_2 = [2,3,6] # Strategy
self.scale_tab = 0
self.scale_user = 0
#self.user_div_range = (1,500)
#self.tab_div_range = (500,1000000)
#self.overlay = True
#self.overlay_var = 200.
#self.percent_by_number = 25
#self.stake=0.5
self.outlay_amount=50.
self.flat_stakes=False
self.takeout = 1000.
#self.rounding="Round Up"
self.userodds1 = (1,10.)
self.userodds2 = (1,10.)
self.userodds3 = (1,10.)
self.userodds4 = (1,10.)
Here is the output:
10 50.0
(2, 1, 7, 6) 9.000
(1, 1, 7, 6) 5.500
(2, 7, 7, 6) 5.500
(1, 7, 7, 6) 3.500
(2, 1, 5, 6) 5.000
(2, 6, 7, 6) 7.500
(1, 1, 5, 6) 3.000
(1, 6, 7, 6) 4.500
(2, 1, 1, 6) 3.500
(2, 7, 5, 6) 3.000 Calculation Time: 0.011
self.bet_type = 'Quaddie'
self.nraces = 4 self.horse_ids.append(range(1,25))
self.tab_odds.append([19.1,26.4,12.4,14.7,14.0,34.5,13.4,34.1,14.2,13.6,36.0,100.0,13.8,26.5,16.9,14.2,45.3,22.8,31.7,100.0,16.7,12.1,20.5,40.9]) self.horse_ids.append(range(1,25))
self.tab_odds.append([10.9,11.2,46.2,100.0,16.5,100.0,72.9,67.7,51.8,12.7,25.9,15.3,63.6,13.2,27.5,10.4,16.3,38.3,100.0,84.8,10.1,11.4,9.1,18.5]) self.horse_ids.append(range(1,25))
self.tab_odds.append([11.3,13.3,34.2,97.0,92.4,100.0,16.0,9.6,19.2,22.4,28.8,51.1,18.3,11.4,18.8,56.3,17.8,20.4,10.8,100.0,16.7,9.8,19.5,86.7]) self.horse_ids.append(range(1,25))
self.tab_odds.append([20.7,19.9,10.0,100.0,10.8,12.5,100.0,17.9,28.8,24.9,19.8,8.6,100.0,100.0,9.9,9.6,25.6,22.3,31.0,10.7,27.3,86.2,100.0,54.4]) # Strategy
self.scale_tab = 0
self.scale_user = 0
self.outlay_amount=50.
self.flat_stakes=False
self.takeout = 1000.
Here is the output:
100 50.0
(22, 23, 8, 12) 0.5
(22, 23, 22, 12) 0.5
(3, 23, 8, 12) 0.5
(3, 23, 22, 12) 0.5
(7, 23, 8, 12) 0.5
(22, 21, 8, 12) 0.5
(22, 23, 8, 16) 0.5
(10, 23, 8, 12) 0.5
(22, 23, 19, 12) 0.5
(7, 23, 22, 12) 0.5
(22, 21, 22, 12) 0.5
(3, 21, 8, 12) 0.5
(22, 23, 22, 16) 0.5
(13, 23, 8, 12) 0.5
(22, 16, 8, 12) 0.5
(3, 23, 8, 16) 0.5
(10, 23, 22, 12) 0.5
(22, 23, 8, 15) 0.5
(3, 23, 19, 12) 0.5
(5, 23, 8, 12) 0.5
(3, 21, 22, 12) 0.5
(22, 23, 8, 3) 0.5
(13, 23, 22, 12) 0.5
(22, 16, 22, 12) 0.5
(3, 23, 22, 16) 0.5
(3, 16, 8, 12) 0.5
(16, 23, 8, 12) 0.5
(9, 23, 8, 12) 0.5
(22, 23, 22, 15) 0.5
(22, 23, 1, 12) 0.5
(3, 23, 8, 15) 0.5
(5, 23, 22, 12) 0.5
(22, 23, 22, 3) 0.5
(22, 23, 14, 12) 0.5
(3, 23, 8, 3) 0.5
(3, 16, 22, 12) 0.5
(22, 1, 8, 12) 0.5
(16, 23, 22, 12) 0.5
(9, 23, 22, 12) 0.5
(3, 23, 22, 15) 0.5
(3, 23, 1, 12) 0.5
(4, 23, 8, 12) 0.5
(3, 23, 22, 3) 0.5
(3, 23, 14, 12) 0.5
(22, 1, 22, 12) 0.5
(3, 1, 8, 12) 0.5
(7, 21, 8, 12) 0.5
(22, 2, 8, 12) 0.5
(7, 23, 8, 16) 0.5
(22, 21, 8, 16) 0.5
(4, 23, 22, 12) 0.5
(22, 23, 8, 20) 0.5
(7, 23, 19, 12) 0.5
(10, 21, 8, 12) 0.5
(22, 21, 19, 12) 0.5
(22, 22, 8, 12) 0.5
(3, 1, 22, 12) 0.5
(10, 23, 8, 16) 0.5
(7, 21, 22, 12) 0.5
(22, 23, 8, 5) 0.5
(22, 23, 19, 16) 0.5
(22, 2, 22, 12) 0.5
(3, 2, 8, 12) 0.5
(7, 23, 22, 16) 0.5
(10, 23, 19, 12) 0.5
(22, 21, 22, 16) 0.5
(7, 16, 8, 12) 0.5
(13, 21, 8, 12) 0.5
(3, 21, 8, 16) 0.5
(22, 23, 22, 20) 0.5
(13, 23, 8, 16) 0.5
(10, 21, 22, 12) 0.5
(7, 23, 8, 15) 0.5
(3, 23, 8, 20) 0.5
(22, 16, 8, 16) 0.5
(22, 21, 8, 15) 0.5
(22, 22, 22, 12) 0.5
(3, 21, 19, 12) 0.5
(10, 23, 22, 16) 0.5
(22, 23, 22, 5) 0.5
(13, 23, 19, 12) 0.5
(3, 22, 8, 12) 0.5
(5, 21, 8, 12) 0.5
(10, 16, 8, 12) 0.5
(22, 16, 19, 12) 0.5
(3, 23, 8, 5) 0.5
(3, 23, 19, 16) 0.5
(3, 2, 22, 12) 0.5
(7, 23, 8, 3) 0.5
(22, 21, 8, 3) 0.5
(5, 23, 8, 16) 0.5
(7, 16, 22, 12) 0.5
(13, 21, 22, 12) 0.5
(10, 23, 8, 15) 0.5
(22, 23, 19, 15) 0.5
(3, 21, 22, 16) 0.5
(13, 23, 22, 16) 0.5
(7, 23, 22, 15) 0.5
(3, 23, 22, 20) 0.5
(5, 23, 19, 12) 0.5 Calculation Time: 7.0870
Superfecta:
self.bet_type = "Superfecta"
self.nraces = 6 self.horse_ids.append(range(1,12))
self.tab_odds.append([5.2,3.2,16.2,5.8,9.3,34.8,6.7,9.7,14.3,10.5,60.])
self.user_odds.append([4.1, 3.8, 19.1, 8.0, 7.6, 35.8, 7.2, 11.1, 11.6, 10.9, 56.8]) self.horse_ids.append(range(1,8))
self.tab_odds.append([1.3,10.0,12.0,3.1,15.1,1.6,2.3])
self.user_odds.append([1.6, 13.0, 7.2, 2.8, 20.8, 2.3, 1.9]) self.horse_ids.append(range(1,10))
self.tab_odds.append([8.3,31.0,4.2,10.0,6.0,7.2,3.2,20,42.6])
self.user_odds.append([5.0, 34.8, 5.3, 14.3, 4.3, 8.5, 3.2, 28.9, 61.3]) self.horse_ids.append(range(1,8))
self.tab_odds.append([31.7,13.7,4.7,22.6,11.7,2.4,11.7])
self.user_odds.append([29.3, 13.9, 4.7, 26.1, 15.2, 1.5, 8.9]) self.horse_ids.append(range(1,12))
self.tab_odds.append([5.,3.,16.,5.,9.,34.,6.,9.,14.,10.,30.])
self.user_odds.append([4., 4, 19., 8.0, 8, 36, 7., 11., 12, 11, 60]) self.horse_ids.append(range(1,10))
self.tab_odds.append([8.,30.0,4.,10.0,6.0,7.,3.,20,43])
self.user_odds.append([5.0, 35, 5., 14., 4., 8., 3., 29, 60]) #self.standouts_1 = [1,2]
#self.standouts_2 = [1,2,3]
#self.standouts_1 = [1,4,5]
#self.standouts_2 = [2,3,6] # Strategy
self.scale_tab = 0
self.scale_user = 0
#self.user_div_range = (1,500)
#self.tab_div_range = (500,1000000)
#self.overlay = True
#self.overlay_var = 200.
#self.percent_by_number = 25
#self.stake=0.5
self.outlay_amount=100.
self.flat_stakes=False
self.takeout = 10000.
self.rounding="Round Up"
self.userodds1 = (1,10.)
self.userodds1 = (1,10.)
self.userodds3 = (1,10.)
self.userodds4 = (1,10.)
self.userodds4 = (1,10.)
self.userodds4 = (1,10.)
Here is the output:
43 100.0
(2, 1, 7, 6, 2, 7) 6.000
(2, 1, 7, 6, 1, 7) 3.500
(1, 1, 7, 6, 2, 7) 3.500
(1, 1, 7, 6, 1, 7) 2.500
(2, 7, 7, 6, 2, 7) 3.500
(2, 7, 7, 6, 1, 7) 2.000
(1, 7, 7, 6, 2, 7) 2.000
(1, 7, 7, 6, 1, 7) 1.500
(2, 1, 7, 6, 2, 5) 3.000
(2, 1, 7, 6, 1, 5) 2.000
(2, 1, 5, 6, 1, 7) 2.000
(2, 1, 5, 6, 2, 7) 3.500
(2, 6, 7, 6, 1, 7) 3.000
(2, 6, 7, 6, 2, 7) 5.000
(1, 1, 7, 6, 1, 5) 1.500
(1, 1, 7, 6, 2, 5) 2.000
(1, 1, 5, 6, 1, 7) 1.500
(1, 1, 5, 6, 2, 7) 2.000
(1, 6, 7, 6, 1, 7) 2.000
(1, 6, 7, 6, 2, 7) 3.000
(2, 1, 1, 6, 1, 7) 1.500
(2, 1, 1, 6, 2, 7) 2.500
(2, 7, 7, 6, 2, 5) 2.000
(2, 7, 7, 6, 1, 5) 1.000
(2, 7, 5, 6, 1, 7) 1.500
(2, 7, 5, 6, 2, 7) 2.000
(2, 1, 3, 6, 2, 7) 4.500
(2, 1, 3, 6, 1, 7) 3.000
(2, 1, 7, 6, 1, 3) 3.000
(2, 1, 7, 6, 2, 3) 4.500
(2, 1, 7, 6, 1, 1) 1.500
(2, 1, 7, 6, 2, 1) 2.500
(1, 1, 1, 6, 2, 7) 1.500
(1, 1, 1, 6, 1, 7) 1.000
(1, 7, 7, 6, 1, 5) 1.000
(1, 7, 7, 6, 2, 5) 1.000
(1, 7, 5, 6, 2, 7) 1.500
(1, 7, 5, 6, 1, 7) 1.000
(2, 4, 7, 6, 1, 7) 1.500
(2, 4, 7, 6, 2, 7) 2.500
(2, 1, 7, 6, 7, 7) 3.000
(2, 1, 5, 6, 1, 5) 1.000
(1, 7, 1, 6, 1, 7) 0.500 Calculation Time: 1.546 到此,测试完成,呵呵,有对体育/赛马/赛事/彩票投注感兴趣的小伙伴,可以参考下!!
用于 Quinella/Exacta/Trifecta/Pick Four/Pick Six/Quaddie/Superfecta 7大规则的测试的更多相关文章
- How to Construct the Input Bet String
The purpose of this section is to describe the format of the string which will submitted to the Pyth ...
- Odds calculation required for the python strategy library
Bet Class class strats.Bet(inp)[source] Here is an example of the expected string input on instantia ...
- [LeetCode] Random Pick Index 随机拾取序列
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- Random Pick Index
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- Leetcode: Random Pick Index
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- [Swift]LeetCode398. 随机数索引 | Random Pick Index
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- [LeetCode] 398. Random Pick Index ☆☆☆
Given an array of integers with possible duplicates, randomly output the index of a given target num ...
- 398. Random Pick Index随机pick函数
[抄题]: Given an array of integers with possible duplicates, randomly output the index of a given targ ...
- _.pick lodash
http://lodash.think2011.net/pick _.pick(object, [props]) 创建一个从 object 中选中的属性的对象. 参数 object (Object) ...
随机推荐
- Java的常用API之Object类简介
Object类 1.toString方法在我们直接使用输出语句输出对象的时候,其实通过该对象调用了其toString()方法. 2.equals方法方法摘要:类默认继承了Object类,所以可以使用O ...
- 【数据库】Mysql配置参数
vim /ect/my.cnf 使用命令打开mysql的配置文件. 加入以下参数 [mysql] default-character-set=utf8 [mysqld] lower_case_tabl ...
- 我的第一个netcore2.2 api项目搭建(一)
早早就想入门netcore,一直没下定决心,这次正好碰上项目服务变更,便想着入坑试试,边学边用. 目标: 一.api使用core版的SqlSugar,集成orm,实现快速开发 二.api使用Swagg ...
- docker学习之路-nginx镜像(翻译)
本篇来自https://hub.docker.com/_/nginx/?tab=description 它是docker hub上nginx的官方网站,上面有关于nginx的使用描述等.从这里你可以找 ...
- intent 参数的规范
对于采用 intent 参数的 Activity Manager 命令,您可以使用以下选项指定 intent: -a action 指定 intent 操作,如“android.intent.acti ...
- spring boot整合spring Data JPA和freemarker
1.spring Data JPA简介 是一个替代hibernate的一个作用于数据库的框架. 2.整合 1.导入依赖 <dependency> <groupId>org.sp ...
- python基础01day
1 python多版本共存 因为python2和python3的解释器程序都是python.exe,在同时加入环境变量的情况下名称重复,如果重命名的话又会造成需要链接解释器的程序无法调用解释器,所以采 ...
- HttpURLConnection Get和Post发送数据
Get URL url = new URL(path); HttpURLConnection connection = (HttpURLConnection) url.openConnection() ...
- Go语言入门——函数
写了快一个月的Go,已经没有什么陌生感了. 一行代码写完,不会在行尾本能的敲上“:”,直接Enter键换行: 定义变量把变量名放在前面,类型放在后面: 使用struct去定义自己想要的数据模型就好比定 ...
- Kubernetes学习之原理
Kubernetes基本概念 一.Label selector在kubernetes中的应用场景 1.kube-controller-manager的replicaSet通过定义的label 来筛选要 ...