Frame group tools for personal use and group for personal use
# Coding: UTF-8
BUTTON = 'button '# crop ?????
L_BLIND = 'little _ blind' # Small blind Injection
B _BLIND = 'Big _ blind' # Small blind Injection
SEAT = 'seat'
HOLD = 'hold '# hand card
ASK = 'Ask '#?????
FIRST = 'first' # Send three cards for the first time ?????
TURN = 'call' # badge
RIVER = 'river' # river Card
ACT = 'act'
#????
HEI = 'hei'
HONG = 'Hong'
MEI = 'Mei'
FANG = 'fang'
LITTLE_BLIND_MONEY = 500
Start_monetary = 8000
START_BET = 2000
Input_info = [
(SEAT, 2, 0), #2 people in total. I am 0th people, and 0 people represent crops.
(HOLD, [(HEI, 'A'), (HEI, 'k')]),
(ACT, [0,]), #-1 = give up, 0 = Let (or follow), n = add n note
(FIRST, [(HEI, 'q'), (HEI, 'J'), (HEI, '10')]),
(ACT, [0, 1]),
(TURN, [(HONG, '2'),]),
(ACT, [0, 1]),
(RIVER, [(FANG, '3'),]),
(ACT, [0, 1]),
]
Def analyse_SEAT (one_info ):
Person_cnt = one_info [1]
My_seat = one_info [2]
Core =''
For I in range (person_cnt ):
If my_seat = I:
Pid = 1, 3001
Else:
Pid = 9001 + I
If I = 0:
Extra_info = BUTTON
Elif I = 1:
Extra_info = L_BLIND
Elif I = 2:
Extra_info = B _BLIND
Else:
Extra_info =''
This_line = '{0} {1 }:{ 2} {3} \ n'. format (extra_info, pid, START_BET, START_MONEY )#??????
Core + = this_line
Return SEAT + '/\ n' + core +'/'+ SEAT +' \ N'
Def analyse_HOLD (one_info ):
'''
Hold \
HEI 10
MEI 9
\ Hold
'''
Body_info = one_info [1]
Return ''' {0 }\
{1} {2}
{3} {4}
\ {0} '''. format (HOLD,
Body_info [0] [0], body_info [0] [1],
Body_info [1] [0], body_info [1] [1],
)
Def analyse_FIRST (one_info ):
Body_info = one_info [1]
Return ''' {0 }\
{1} {2}
{3} {4}
{5} {6}
\ {0} '''. format (FIRST,
Body_info [0] [0], body_info [0] [1],
Body_info [1] [0], body_info [1] [1],
Body_info [2] [0], body_info [2] [1],
)
Def analyse_TURN (one_info ):
Body_info = one_info [1]
Return ''' {0 }\
{1} {2}
\ {0} '''. format (TURN,
Body_info [0] [0], body_info [0] [1],
)
Def analyse_RIVER (one_info ):
Body_info = one_info [1]
Return ''' {0 }\
{1} {2}
\ {0} '''. format (RIVER,
Body_info [0] [0], body_info [0] [1],
)
#?????
Def get_pid (I ):
Return 9001 + I
Def analyse_ACT (one_info ):
'''
ASK \
9001: 0 8000 500 call
Total: xxxx
\ ASK
'''
Core =''
For I, itm in enumerate (one_info [1]):
If 0 = itm:
Extra_info = 'check'
Pay = LITTLE_BLIND_MONEY #????
Elif-1 = itm :#???? An assembly error occurs when a card is discarded.
Extra_info = 'fold'
Pay = 0
Else:
Extra_info = 'raise'
Pay = LITTLE_BLIND_MONEY * itm
Pid = get_pid (I)
Cur_bet = 500 #???? Dynamic retrieval required
Cur_monetary = 8000
This_line = '{0 }:{ 1} {2} {3} {4} \ n'. format (
Pid, cur_bet, cur_money, pay, extra_info)
Core + = this_line
Total_pot = 1000 #?????
Rtn = '''
{0 }\
{1} total: {2}
\ {0}
'''. Format (ASK, core, total_pot )#????????
Return rtn
Def analyse_one (one_info ):
Type = one_info [0]
If type = SEAT:
Rtn = analyse_SEAT (one_info)
Elif type = HOLD:
Rtn = analyse_HOLD (one_info)
Elif type = FIRST:
Rtn = analyse_FIRST (one_info)
Elif type = TURN:
Rtn = analyse_TURN (one_info)
Elif type = RIVER:
Rtn = analyse_RIVER (one_info)
Elif type = ACT:
Rtn = analyse_ACT (one_info)
Else:
Print 'Type error'
Return rtn
Def analyze (all_info ):
Rtn =''
For itm in all_info:
Rtn + = analyse_one (itm)
Return rtn
Print analyze (input_info)
What is the illegal operation of self-used tool vehicles?
.
Commercial transportation refers to the settlement of labor services for the society, profit-based purposes, and various payment methods (including production and sales, payment for goods and freight, and calculation of freight and engineering fees, and the freight section in the external project contract) road transportation;
Non-commercial transportation means road transportation that does not aim for profit, only serves the unit and individual, and does not charge fees in any way. It is a transportation activity completed by a transport producer using a self-owned vehicle. The purpose of such transportation activities is to meet certain production or living needs, rather than transport activities directly to get transport remuneration. According to the above provisions, to distinguish between commercial road transportation and non-commercial road transportation, it depends on whether or not to provide labor services to the society (the service targets unspecified persons) whether to provide transportation services to other organizations or individuals; 2. whether to use transportation activities as a means of direct profit; 3. Whether a certain amount of fees are settled in the process of providing transportation services. Commercial transportation must all meet the preceding three conditions.
According to the Road Transportation Regulations of the People's Republic of China, Shandong Road Transportation Management Regulations, and the reply letter of the highway department of the Ministry of Transport on division of commercial and non-commercial transportation
Is it an operating tool for self-use non-operation passenger cars to pull their own tools?
If this is the case, it's not unreasonable.
However, if you open a shop and pull the goods in your store, it seems that you want to count them in operation. I have seen it in a newspaper before.