This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from src.division_builder.division_builder import LandDivisionBuilder | |
from src.land_warfare.land_warfare_calc import calc_damage | |
from src.division_builder.technologies import technologies, equipments | |
from src.utils import round_util, round_sum, round_min, round_max | |
builder = LandDivisionBuilder("data/") | |
division_template_dict1 = { | |
'name': 'Test-Division_01 11I 6A', | |
'division_names_group': 'Test_Arm_01', | |
'regiments': ['infantry'] * 11 + ['artillery_brigade'] * 6, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from src.division_builder.division_builder import LandDivisionBuilder | |
from src.land_warfare.land_warfare_calc import calc_damage | |
from src.division_builder.technologies import technologies, equipments | |
from src.utils import round_util, round_sum, round_min, round_max | |
builder = LandDivisionBuilder("data/") | |
division_template_dict1 = { | |
'name': 'Test-Division_01 11步6炮', | |
'division_names_group': 'Test_Arm_01', | |
'regiments': ['infantry'] * 11 + ['artillery_brigade'] * 6, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
LAND_COMBAT_ORG_DICE_SIZE = 4 | |
LAND_COMBAT_STR_DICE_SIZE = 2 | |
LAND_COMBAT_ORG_ARMOR_ON_SOFT_DICE_SIZE = 6 | |
LAND_COMBAT_STR_ARMOR_ON_SOFT_DICE_SIZE = 2 | |
LAND_COMBAT_STR_DAMAGE_MODIFIER = 0.05 | |
LAND_COMBAT_ORG_DAMAGE_MODIFIER = 0.05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import requests | |
import re | |
import threading | |
import queue | |
from tqdm import tqdm | |
from pprint import pprint | |
from hashlib import md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// | |
// Sublime Text 3 设置翻译 by LokiSharp | |
// | |
{ | |
// 主题文件的路径 | |
"color_scheme": "Packages/User/SublimeLinter/Solarized (Dark) (SL).tmTheme", | |
// 设置字体和大小 | |
"font_face": "inziu iosevka SC", | |
"font_size": 12, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python Cheatsheet | |
================= | |
################################ Input & Output ############################### | |
name = input('please enter your name: ') | |
print('hello,', name) | |
ageStr = input('please enter your age: ') | |
age = int(ageStr) | |