It looks like you're new here. If you want to get involved, click one of these buttons!
As title, Can I use layout.has_cell?(name) in python?
I try it show error message: invalid syntax
No, you can't. This is Ruby syntax. Use "has_cell" without the question mark.
For details see here (search for "predicate getters"): https://www.klayout.de/doc-qt5/programming/python.html
One more question, Can I use wildcards in has_cell function?
No, you can't.