新手求教!!
python3吧
全部回复
仅看楼主
level 2
凌也Lynch
楼主
为什么这个字符串就出问题啊 求大神解答我哪里错了吗
2021年02月27日 17点02分
1
level 3
zyc666▫
应该是fullname=firstname+lastname,这是python,两个字符串变量相连用+
2021年02月28日 12点02分
2
z_l_y123
full_name = f"{first_name} {last_name}" 这种用法在 Python 叫做 f-string,用来格式化字符串,Python 3.6 开始有的功能。
2021年03月04日 02点03分
zyc666▫
@z_l_y123
哦
2021年03月06日 14点03分
风化雪域9
运行环境设置为python3即可正常运行。 a_c="abc" b_r="123" c=f"{a_c}{b_r}" print(c)
2021年03月10日 11点03分
level 3
zyc666▫
类似
2021年02月28日 12点02分
3
level 6
z_l_y123
感觉是运行环境的问题。
2021年03月04日 02点03分
4
level 6
z_l_y123
楼主是不是没有保存代码?保存后再运行。
2021年03月04日 02点03分
5
level 6
z_l_y123
另外,建议楼主装一个 jupyter notebook。终端运行 python3 -m pip install jupyter 就可以了。
2021年03月04日 02点03分
6
z_l_y123
关于jupyter notebook的用法可以自己上网搜索。学python的话用这个东西很方便。
2021年03月04日 02点03分
level 4
无名小卒😢😁
重装python
2021年03月06日 08点03分
8
level 2
北京文津军创
两个字符串之间不应该用+连接吗
2021年03月06日 13点03分
9
风化雪域9
这是可以不用加号,
2021年03月10日 11点03分
level 5
冷色的冰ლ
[email protected]
,备注4给你解决
2021年03月08日 09点03分
10
level 5
冷色的冰ლ
私信你了
2021年03月11日 05点03分
11
1