-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
38 lines (35 loc) · 735 Bytes
/
Copy pathtest.py
File metadata and controls
38 lines (35 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import csv, sys, os
import os
from datetime import datetime
dir_path = os.path.dirname(os.path.realpath(__file__))
project_dir = dir_path + '/finalGame'
sys.path.append(project_dir)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django
django.setup()
from Game.models import Player
a = Player.objects.all()
print(a)
# class Host:
# def __init__(self):
# pass
# #
#
# class Player:
# def __init__(self, name):
# self.name = name
# self.active_a = 100
# self.active_b = 100
#
# def Name(self):
# print(f'my name is {self.name}')
# return 0
# def __abs__(self):
# return 'player'
#
#
# p = Player('Vanya')
# p.Name()
# a = [p, p]
# print(a)
print()