我有一些格式为(start_⚡.py,enjoy_
答案1
表情符号在 python 模块名称中无效,因此 nuitka 无法正确处理它们也就不足为奇了:https://docs.python.org/3/reference/simple_stmts.html#the-import-statement表示模块名称是标识符的重复:
模块 ::= (标识符“.”)* 标识符
其中标识符定义为
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_analysis.html#grammar-token-identifier)。既不⚡也不