K
K
kokapuk2021-01-23 14:32:00
PyCharm
kokapuk, 2021-01-23 14:32:00

PyCharm script start buttons disappeared, what should I do?

600c08d5d2b78833590702.png
Why are there no buttons, they disappear on their own, why is this happening and how can I fix it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
igorkonel, 2021-08-26
@igorkonel

View --> Appearance --> Navigation Bar

A
Andrew, 2017-06-11
@Blunker

//var initialData = [1, 9, 4, 95, -3, 51, 6, 9, 4, 4,-9, 88, 27];
var initialData = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2];

var wayFirst = function(data) { 
  var sum = 0;
  data.forEach( (value) => {sum = sum + value} )
  return sum;
}

var waySecond = function(data) {
  var sum = 0;
  data.forEach( (value, i) => {
    i % 2 === 0 ?  sum = sum + value : false
  })
  return sum;
}

var wayThird = function(data) {
  var sum = 0;
  var iTemp = 0
  data.forEach( (value, i) => { 
    if (!iTemp || iTemp + 4 === i)  { 
      sum = sum + value;
      iTemp === 0 ? iTemp = 1 : iTemp = i;
    } 
  })
  return sum;
}

console.log(wayFirst(initialData));
console.log(waySecond(initialData))
console.log(wayThird(initialData))

did through forEach but through reduce it would be a little more compact
or if you need to get not values ​​but summarized elements with an interval
const initialData = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]

let sumArrayWithInterval = (data, interval) => { 
  const sumWithIntervel = []; 
  let next = 0;
  data.forEach((value, i) => {
    if (next === i) { 
      const valueIndex = interval === 1 ? 1 + i : interval + 1 + i;
      
      data[valueIndex] ? sumWithIntervel.push(value + data[valueIndex]) : false
      interval === 1 ? next = i + interval + 1 : next = valueIndex + 1
    }
  })
  return sumWithIntervel;
}
console.log(
      sumArrayWithInterval(initialData, 1)
);

console.log( 
    sumArrayWithInterval(
      sumArrayWithInterval(initialData, 1)
    , 2)
);

console.log( 
  sumArrayWithInterval(
    sumArrayWithInterval(
      sumArrayWithInterval(initialData, 1)
    , 2)
  , 4)
);

T
tomatho, 2017-06-11
@tomatho

I recommend doing this during the day.
You open the curtains of the window to make it brighter.
You can also turn on the light.
You take it, you pour out the whole array on the table.
You move some elements away from others with your fingers.
See to it that the elements are good.
Well, good ones right from the table you throw your finger into the pan.
But seriously, first formulate more clearly.

N
nirvimel, 2017-06-11
@nirvimel

Help)

Put on a lifebuoy and paddle to shore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question