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 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 |
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 | |
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 |