This is instructions on how to give yourself OP enchants on items.
1. To start the command you need to do /give @p minecraft:(an item) E.G /give @p minecraft:diamnd_sword (DON'T ENTER IT YET)
2. Once you've got an item put 1 0 after it with spaces between them. E.G /give @p diamond_sword 1 0
3. Then after the 1 0 bit you have to type in {ench:[{(ID),lvl:(number)}]} E.G /give @p diamond_sword 1 0 {ench:[{id:17,lvl:9999}]}
4. If you don't know the ID then search up on the internet "minecraft enchantment commands" and it should tell you the ID's.
5. Basically now you are finished, but if you want more than one enchant then you do: E.G /give @p diamond_sword 1 0 {ench[{id:17,lvl:9999},{id:18,lvl:9999}]}
Basically just put a comma after the } instead of }]} at the end, then when you've listed the enchantments you want you then put }]} at the end.
FULL COMMAND E.G: /give @p minecraft:diamond_sword 1 0 {ench:[{id:17,lvl:9999}]}
LONGER COMMAND (More than one enchantment) E.G: /give @p minecraft:diamond_sword 1 0 {ench:[{id:17,lvl:9999},{id:18,lvl:9999},{id:19,lvl:9999}]}