Skip to content

Instantly share code, notes, and snippets.

import sys
import re
import codecs
def analyze_command(cmd, str, narg):
"""
:param cmd: '\command1'
:param str: 'hoge' + cmd + '{arg1}{arg2}...{argN}' + 'foo'
:param narg: N
import random
import numpy as np
import math
from matplotlib import pyplot
from matplotlib.font_manager import FontProperties
def dice():
d = math.ceil(random.random()*6)
if d == 0:
d = 1