Assignment for python course, BUPT 2021.
username
and password
must be ASCII
encoding.
If username
exists in database, system will logon with current username
and password
.
Else, a new account will be registered with current username
, password
and email
.
In !config.yaml
:
DB:
user_name: "" # Your ID in ranking system.
user_password: "" # Your password
appid: "V2wizxAwwsXhTCMkVErqXdxU-MdYXbMMI" # appid of leancloud
appkey: "jhLTCii7GAW5Q4DN00kvcIa2" # appkey of leancloud (Sample)
email: "" # Your email, for the administrator to contact you if necessary.
user_name
user_password
and email
must be provided, or you'll not be allowed to use online features.
pip install -r requirements.txt
- python
3.7
- pygame
2.0.1
- leancloud
2.9.3
- pywin32
301
- PyYAML
5.4.1
- Pillow
8.2.0
python main.py