Nuitka는 이모티콘이 포함된 파일 이름으로 컴파일할 수 없습니다.

Nuitka는 이모티콘이 포함된 파일 이름으로 컴파일할 수 없습니다.

다음 형식의 파일이 있습니다(start_⚡.py, Enjoy_

답변1

Emoji는 Python 모듈 이름에서 유효하지 않으므로 nuitka가 Emoji를 올바르게 처리하지 못하는 것은 놀라운 일이 아닙니다.https://docs.python.org/3/reference/simple_stmts.html#the-import-statement모듈 이름이 식별자의 반복임을 나타냅니다.

module::= (식별자 ".")* 식별자

여기서 식별자는 다음과 같이 정의됩니다.

identifier   ::=  xid_start xid_continue*
id_start     ::=  <all characters in general categories Lu, Ll, Lt, Lm, Lo, Nl, the underscore, and characters with the Other_ID_Start property>
id_continue  ::=  <all characters in id_start, plus characters in the categories Mn, Mc, Nd, Pc and others with the Other_ID_Continue property>
xid_start    ::=  <all characters in id_start whose NFKC normalization is in "id_start xid_continue*">
xid_continue ::=  <all characters in id_continue whose NFKC normalization is in "id_continue*">

The Unicode category codes mentioned above stand for:

    Lu - uppercase letters

    Ll - lowercase letters

    Lt - titlecase letters

    Lm - modifier letters

    Lo - other letters

    Nl - letter numbers

    Mn - nonspacing marks

    Mc - spacing combining marks

    Nd - decimal numbers

    Pc - connector punctuations

    Other_ID_Start - explicit list of characters in PropList.txt to support backwards compatibility

    Other_ID_Continue - likewise

(https://docs.python.org/3/reference/lexical_analytic.html#grammar-token-identifier). ⚡도 아니고

관련 정보