Skip to content
Snippets Groups Projects
Commit b7fa7bb1 authored by Liyao Zhu's avatar Liyao Zhu
Browse files

read file2

parent cef16846
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,11 @@ import agent
import matplotlib.pyplot as plt
import numpy as np
import math
import utilis
class game():
def __init__(self):
self.thing = 0
\ No newline at end of file
datamap = utilis.read()
self.N = datamap['N']
\ No newline at end of file
......@@ -2,3 +2,12 @@ file = open("workfile","r")
print(file.readline())
# regular expression
def read():
map = {'N':100, 'M':2}
return map
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment