- Python
p1850要怎写
- 2022-10-6 20:28:13 @
with open('auto.py', 'w') as f:
f.write(
f"""
def {func_name[0]}():
print(123)
{func_name[0]}()
"""
)
对吗?不对的话求讲解
2 条评论
-
艺深(4群) (艺深10岁) LV 4 @ 2022-10-14 12:53:34
with open('auto.py', 'w') as f: f.write( f""" def {func_name[0]}(): print(123) {func_name[0]}() """ )
-
2022-10-13 19:18:15@
你们这些人发代码时,要这样写
- 1