What is Nostr?
/
npub1jam…wr0z
2023-12-04 10:52:26
in reply to nevent1q…g47k

❔ on Nostr: sh1marin black 把這段改成這樣了: trace_file = ( ...

sh1marin (npub1w84…pmwq) black 把這段改成這樣了:

trace_file = (
f"+trace_file={args.trace_output_file}"
if args.trace_output_file
else f"+trace_file={args.output_dir}/trace.fst"
if args.trace
else ""
)
或許還可以這樣?

trace_file = (
"+trace_file=%s"
% (file if (file := args.trace_output_file) else f"{args.output_dir}/trace.fst")
if args.trace
else ""
)
Author Public Key
npub1jams34nmpml2cyheq3vz64dgfju9q9ne8fe3v34lgs8e6fjf04tsmnwr0z