这是交易。我不想使用mySQL,因为我觉得可能要下载的更多。我下载了许多不同的模块,包括熊猫,openpyxl等。
基本上,我想要实现的是一个我可以在一个程序和另一个我想读取的程序(例如注册和登录系统)上写入的数据库。我刚放学后刚回到编程领域。但是想为我正在工作的网站做点什么。只是基本的实现。
到目前为止,我有这个;
#-------------
#Introduction |
#-------------
print('Hello, Welcome to the account creation service!')
print('\nI just need to ask a few questions to assign you a username')
print('\n\n','*' * 15)
#--------------
#Key questions |
#--------------
firstname=input('What is your first name?: ')
print('\n','*' * 15)
lastname=input('What is your last name?: ')
print('\n','*' * 15)
date=input('Write down your date of birth ddmmyy without slashes: ')
#------------------
#Username Creation |
#------------------
print('\n','*' * 15)
username=(firstname[0:2] + lastname[0:2] + date)
print('\n','*' * 15)
print('\nCreating your username...')
input('\nPress enter to uncover your username: ')
print('\nyour username is: ',username.upper())
#------------------
#Password Creation |
#------------------
print('\n\nYou now need to create a password.')
password=input('\nPlease set a password: ')
print('\n\nPASSWORD SET\n')
input('\nPress enter to leave this page: ')
#------------------------
#Database Implementation |
#------------------------
import openpyxl
from openpyxl import load_workbook
wb = load_workbook(filename = 'accountdatabase.xlxs')