08 2022 档案
摘要:问题:Pycharm自动添加函数注释参数失效 解决办法: File>settings>Python Integrated Tools>Docstrings>Docstring format : reStructuredText 修改之后的效果:
阅读全文
摘要:random.choice(sequence) 从序列中获取一个随机元素,参数sequence表示一个有序类型,泛指一系列类型,如list,tuple,字符串。 import random list_1 = ['python','java','c'] str_1 = "i love python"
阅读全文
摘要:1、切换到远程某个分支 origin/715-master 2、从origin/715-master分支拉取分支 :点击 New Branch from Seleted,此时等于新建本地 715-master 的分支:715_yaya 3、此时分支已经建好,715_yaya是715-master 的
阅读全文
摘要:参考文档: https://www.jianshu.com/p/32112b3776e3
阅读全文
摘要:第一种:cat /dev/null > filename 第二种:: > filename 第三种:> filename 第四种:echo "" > filename 第五种:echo > filename https://blog.csdn.net/m0_60126160/article/deta
阅读全文
摘要:return有带参数和不带参数之分: return带参数的.就是.返回值. 不带参数的就是结束当前程序块
阅读全文
摘要:1、数据准备 -- 创建表 CREATE TABLE `t_json_demo` ( `f_id` INT NOT NULL AUTO_INCREMENT, `f_arrays` JSON NULL, `f_object` JSON NULL, PRIMARY KEY (`f_id`)) ENGIN
阅读全文
摘要:1.encode函数的用法及实例 encode()的语法 :str.encode([encoding="utf-8"][,errors="strict"]) 参数说明: str:表示需要编码的字符串,用引号引开。 encoding="utf-8":参数可选写,默认编写为"utf-8",常用的是utf
阅读全文
摘要:for 循环,它常用于遍历字符串、列表、元组、字典、集合等序列类型,逐个获取序列中的各个元素。 for 迭代变量 in 字符串|列表|元组|字典|集合: 代码块 add = "www.qinjl.com" # for循环,遍历 add 字符串 for ch in add: print(ch, end
阅读全文
摘要:#!/usr/bin/env python3 # coding: utf-8 import pymysql try: db = pymysql.connect("192.168.10.104", "root", "root", "test") c = db.cursor() with open('t
阅读全文
摘要:“./”:代表目前所在的目录。 " . ./"代表上一层目录。 “/”:代表根目录。 https://blog.csdn.net/Young__Fan/article/details/80152501
阅读全文

浙公网安备 33010602011771号