pytbrain2007
10.11.2021 00:24

Почему у меня не работает код? from tkinter import *
root = Tk()
root.title("Регистор символов клавиатуры")
text = Text()
text = Text(width=20, height=5, highlightthickness=2)
text.pack()

def reportEvent(event):
print('keysym=%s, keysym_num=%s'%(event.keysym, event.keysym_num))
text = Text.bind(' ', Enter)
text.pack(expand = 1, fill = 'both')
text.focus.set()
root.mainloop()


Почему у меня не работает код? from tkinter import *root = Tk()root.title(Регистор символов клавиат
Почему у меня не работает код? from tkinter import *root = Tk()root.title(Регистор символов клавиат

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
svv190204
05.06.2020 07:04

#include <iostream>

#include <cmath>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   int n;

   cin >> n;

   int ans = 0;

   int a[n],b[n];

   for(int i = 0; i < n; i++)

       cin >> a[i];

   for(int i = 0; i < n; i++)

       cin >> b[i];

   for(int i = 0; i < n; i++)

       if(a[i] > b[i])

           ans++;

   cout << ans;    

}

P.S что было сложно или непонятно, задача ну очень простая, на реализацию

0,0(0 оценок)
Ответ:
nastyakostikov1
05.06.2020 07:04

#include <iostream>

#include <cmath>

using namespace std;

signed main() {

   ios_base::sync_with_stdio(0);

   cin.tie(0);

   cout.tie(0);

   int n;

   cin >> n;

   int ans = 0;

   int a[n],b[n];

   for(int i = 0; i < n; i++)

       cin >> a[i];

   for(int i = 0; i < n; i++)

       cin >> b[i];

   for(int i = 0; i < n; i++)

       if(a[i] > b[i])

           ans++;

   cout << ans;    

}

P.S что было сложно или непонятно, задача ну очень простая, на реализацию

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота