当前位置:网站首页>The solution to prompt "this dictionary creation could be rewritten as a dictionary literal" when updating the dictionary key value in pychart
The solution to prompt "this dictionary creation could be rewritten as a dictionary literal" when updating the dictionary key value in pychart
2022-06-23 04:54:00 【Haohong image algorithm】
stay Pycharm Prompt when updating the key value of the dictionary in “This dictionary creation could be rewritten as a dictionary literal ”, As shown below :
dict1 = {
'name': 'suwenhao', 'likes': 'reading', 123: 456}
dict1['name'] = 'wanghong'

What's going on here ?
In essence, it is still with Bowen https://blog.csdn.net/wenhao_ir/article/details/125414855 The problem mentioned in is the same problem .
therefore , We just need to insert any statement between two lines of code , As shown below :
dict1 = {
'name': 'suwenhao', 'likes': 'reading', 123: 456}
k = 1
dict1['name'] = 'wanghong'

As can be seen from the screenshot above , The hint disappeared .
边栏推荐
猜你喜欢

智能语音时代到来,谁在定义新时代AI?

8位全加器原理

Dpr-34v/v two position relay

开发一年不到,来面试居然敢开口要20K,面完连8K都不想给~

A mvc5+easyui enterprise rapid development framework source code BS framework source code

Qt 及QT VS Tools插件官方下载及安装

Abnova 荧光染料 510-M 链霉亲和素方案

mysql json

静态双位置继电器 XJLS-84/440/DC220V

Abnova actn4 purified rabbit polyclonal antibody instructions
随机推荐
Current relay hdl-a/1-110vdc-1
DSP7 环境
Distance measure - cosine distance
智能语音时代到来,谁在定义新时代AI?
如何让社交媒体成为跨境电商驱动力?这款独立站工具不能错过!
Abnova liquidcell negative enrichment cell separation and recovery system
Abnova 荧光染料 555-C3 马来酰亚胺方案
1183. 电力
Notes on writing questions in C language -- free falling ball
五年连续亏损42亿,蘑菇如何渡劫?
PTA: price of 7-65 beverage
STL tutorial 3- exception mechanism
Const understanding one
Openjudge noi 1.13 50: several
独立站聊天机器人有哪些类型?如何快速创建属于自己的免费聊天机器人?只需3秒钟就能搞定!
Kail 渗透基本素养 基础命令
Static two position relay xjls-84/440/dc220v
Non return to zero code NRZ
Project summary 1 (header file, switch, &, bit variables)
QT elidedText 只对中文符合起作用,对英文不起作用的问题解决