Jakiś problem?

Dzień: 2019-07-29

Self w Pythonie

Self in python represents or points the instance which it was called.  obj1 = SomeClass() obj2 = SomeClass() obj1.insert_to_arr(6) But now how does that method know “which object is calling me and whose instance attributes should be updated”. Here, to whose arr array should I append the value 6?  Behind the scene, in every instance method call, python…

Słowniki w bazie danych

Tabela Słowniki CREATE TABLE [dbo].[slowniki]( [id_slownika] [int] IDENTITY(1,1) NOT NULL, [nazwa] [nvarchar](50) NULL, [tabela] [nvarchar](50) NULL, CONSTRAINT [PK_slowniki] PRIMARY KEY CLUSTERED ( [id_slownika] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO id_slownika Nazwa Tabela 1 NN NULL 2 NN NULL…