current position:Home>Problems related to Python function syntax

Problems related to Python function syntax

2022-07-25 03:44:12CSDN Q & A

This syntax in Figure 1 is correct , Why can't figure 2 ? Figure 1 is to create a tuple , Isn't figure 2 creating a dictionary ?

img

img

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/206/202207181142425698.html

Random recommended